DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Geant4InteractionVertexBoost.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
23 #ifndef DDG4_GEANT4INTERACTIONVERTEXBOOST_H
24 #define DDG4_GEANT4INTERACTIONVERTEXBOOST_H
25 
26 // Framework include files
28 #include <DDG4/Geant4Primary.h>
29 
31 namespace dd4hep {
32 
34  namespace sim {
35 
37 
46  public:
49 
50  protected:
52  double m_angle;
54  int m_mask;
55 
57  void boost(Interaction* interaction) const;
58 
59  public:
67  virtual void operator()(G4Event* event) override;
68  };
69  } // End namespace sim
70 } // End namespace dd4hep
71 #endif // DDG4_GEANT4INTERACTIONVERTEXBOOST_H
dd4hep::sim::Geant4InteractionVertexBoost::Geant4InteractionVertexBoost
Geant4InteractionVertexBoost()=delete
Inhibit default constructor.
dd4hep::sim::Geant4InteractionVertexBoost::boost
void boost(Interaction *interaction) const
Action routine to boost one single interaction according to the properties.
dd4hep::sim::Geant4InteractionVertexBoost::Interaction
Geant4PrimaryInteraction Interaction
Interaction definition.
Definition: Geant4InteractionVertexBoost.h:48
dd4hep::sim::Geant4PrimaryInteraction
Class modelling a single interaction with multiple primary vertices and particles.
Definition: Geant4Primary.h:95
dd4hep::sim::Geant4InteractionVertexBoost::m_mask
int m_mask
Property: Unique identifier of the interaction to be modified.
Definition: Geant4InteractionVertexBoost.h:54
Geant4GeneratorAction.h
dd4hep::sim::Geant4InteractionVertexBoost::~Geant4InteractionVertexBoost
virtual ~Geant4InteractionVertexBoost()
Default destructor.
dd4hep::sim::Geant4GeneratorAction
Concrete implementation of the Geant4 generator action base class.
Definition: Geant4GeneratorAction.h:47
dd4hep::sim::Geant4Action::name
const std::string & name() const
Access name of the action.
Definition: Geant4Action.h:280
dd4hep::sim::Geant4InteractionVertexBoost::operator()
virtual void operator()(G4Event *event) override
Callback to generate primary particles.
dd4hep::sim::Geant4InteractionVertexBoost::m_angle
double m_angle
Property: The constant Lorentz transformation angle.
Definition: Geant4InteractionVertexBoost.h:52
dd4hep::sim::Geant4InteractionVertexBoost::Geant4InteractionVertexBoost
Geant4InteractionVertexBoost(Geant4Context *context, const std::string &name)
Standard constructor.
Geant4Primary.h
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::sim::Geant4Context
Generic context to extend user, run and event information.
Definition: Geant4Context.h:201
dd4hep::sim::Geant4Action::context
Geant4Context * context() const
Access the context.
Definition: Geant4Action.h:270
Geant4InteractionVertexBoost
Action class to boost the primary vertex (and all outgoing particles) of a single interaction.