DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
dd4hep::sim::Geant4ActionContainer Class Reference

Class, which allows all Geant4Action to be stored. More...

#include <Geant4ActionContainer.h>

Inheritance diagram for dd4hep::sim::Geant4ActionContainer:
dd4hep::sim::Geant4Kernel

Public Member Functions

Geant4ContextworkerContext ()
 Thread's Geant4 execution context. More...
 
virtual int terminate ()
 Terminate all associated action instances. More...
 
Geant4GeneratorActionSequencegeneratorAction (bool create)
 Access generator action sequence. More...
 
Geant4GeneratorActionSequencegeneratorAction ()
 Access generator action sequence. More...
 
Geant4RunActionSequencerunAction (bool create)
 Access run action sequence. More...
 
Geant4RunActionSequencerunAction ()
 Access run action sequence. More...
 
Geant4EventActionSequenceeventAction (bool create)
 Access run action sequence. More...
 
Geant4EventActionSequenceeventAction ()
 Access run action sequence. More...
 
Geant4SteppingActionSequencesteppingAction (bool create)
 Access stepping action sequence. More...
 
Geant4SteppingActionSequencesteppingAction ()
 Access stepping action sequence. More...
 
Geant4TrackingActionSequencetrackingAction (bool create)
 Access tracking action sequence. More...
 
Geant4TrackingActionSequencetrackingAction ()
 Access tracking action sequence. More...
 
Geant4StackingActionSequencestackingAction (bool create)
 Access stacking action sequence. More...
 
Geant4StackingActionSequencestackingAction ()
 Access stacking action sequence. More...
 
Geant4DetectorConstructionSequencedetectorConstruction (bool create)
 Access detector construcion action sequence (geometry+sensitives+field) More...
 
Geant4DetectorConstructionSequencedetectorConstruction ()
 Access detector construcion action sequence (geometry+sensitives+field) More...
 
Geant4SensDetSequencessensitiveActions () const
 Access to the sensitive detector sequences from the actioncontainer object. More...
 
Geant4SensDetActionSequencesensitiveAction (const std::string &name)
 Access to the sensitive detector action from the actioncontainer object. More...
 
Geant4PhysicsListActionSequencephysicsList (bool create)
 Access to the physics list. More...
 
Geant4PhysicsListActionSequencephysicsList ()
 Access to the physics list. More...
 
Geant4UserInitializationSequenceuserInitialization (bool create)
 Access to the user initialization object. More...
 
Geant4UserInitializationSequenceuserInitialization ()
 Access to the user initialization object. More...
 

Protected Member Functions

template<typename C >
bool registerSequence (C *&seq, const std::string &name)
 Helper to register an action sequence. More...
 
 Geant4ActionContainer (Geant4Context *ctxt=0)
 Standard constructor. More...
 
virtual ~Geant4ActionContainer ()
 Default destructor. More...
 
void setContext (Geant4Context *ctxt)
 Set the thread's context. More...
 

Protected Attributes

Geant4Contextm_context { nullptr }
 Geant4 worker context (thread specific) More...
 
Geant4GeneratorActionSequencem_generatorAction { nullptr }
 Reference to the Geant4 primary generator action. More...
 
Geant4RunActionSequencem_runAction { nullptr }
 Reference to the Geant4 run action. More...
 
Geant4EventActionSequencem_eventAction { nullptr }
 Reference to the Geant4 event action. More...
 
Geant4TrackingActionSequencem_trackingAction { nullptr }
 Reference to the Geant4 track action. More...
 
Geant4SteppingActionSequencem_steppingAction { nullptr }
 Reference to the Geant4 step action. More...
 
Geant4StackingActionSequencem_stackingAction { nullptr }
 Reference to the Geant4 stacking action. More...
 
Geant4DetectorConstructionSequencem_constructionAction { nullptr }
 Reference to the Geant4 detector construction sequence. More...
 
Geant4SensDetSequencesm_sensDetActions { nullptr }
 Reference to the Geant4 sensitive action sequences. More...
 
Geant4PhysicsListActionSequencem_physicsList { nullptr }
 Reference to the Geant4 physics list. More...
 
Geant4UserInitializationSequencem_userInit { nullptr }
 Reference to the user initialization object. More...
 

Detailed Description

Class, which allows all Geant4Action to be stored.

Author
M.Frank
Version
1.0

Definition at line 60 of file Geant4ActionContainer.h.

Constructor & Destructor Documentation

◆ Geant4ActionContainer()

Geant4ActionContainer::Geant4ActionContainer ( Geant4Context ctxt = 0)
protected

Standard constructor.

Definition at line 38 of file Geant4ActionContainer.cpp.

◆ ~Geant4ActionContainer()

Geant4ActionContainer::~Geant4ActionContainer ( )
protectedvirtual

Default destructor.

Definition at line 45 of file Geant4ActionContainer.cpp.

Member Function Documentation

◆ detectorConstruction() [1/2]

Geant4DetectorConstructionSequence& dd4hep::sim::Geant4ActionContainer::detectorConstruction ( )
inline

Access detector construcion action sequence (geometry+sensitives+field)

Definition at line 152 of file Geant4ActionContainer.h.

◆ detectorConstruction() [2/2]

Geant4DetectorConstructionSequence * Geant4ActionContainer::detectorConstruction ( bool  create)

Access detector construcion action sequence (geometry+sensitives+field)

Definition at line 127 of file Geant4ActionContainer.cpp.

◆ eventAction() [1/2]

Geant4EventActionSequence& dd4hep::sim::Geant4ActionContainer::eventAction ( )
inline

Access run action sequence.

Definition at line 124 of file Geant4ActionContainer.h.

◆ eventAction() [2/2]

Geant4EventActionSequence * Geant4ActionContainer::eventAction ( bool  create)

Access run action sequence.

Access event action sequence.

Definition at line 99 of file Geant4ActionContainer.cpp.

◆ generatorAction() [1/2]

Geant4GeneratorActionSequence& dd4hep::sim::Geant4ActionContainer::generatorAction ( )
inline

Access generator action sequence.

Definition at line 110 of file Geant4ActionContainer.h.

◆ generatorAction() [2/2]

Geant4GeneratorActionSequence * Geant4ActionContainer::generatorAction ( bool  create)

Access generator action sequence.

Definition at line 85 of file Geant4ActionContainer.cpp.

◆ physicsList() [1/2]

Geant4PhysicsListActionSequence& dd4hep::sim::Geant4ActionContainer::physicsList ( )
inline

Access to the physics list.

Definition at line 164 of file Geant4ActionContainer.h.

◆ physicsList() [2/2]

Geant4PhysicsListActionSequence * Geant4ActionContainer::physicsList ( bool  create)

Access to the physics list.

Definition at line 150 of file Geant4ActionContainer.cpp.

◆ registerSequence()

template<class C >
bool Geant4ActionContainer::registerSequence ( C *&  seq,
const std::string &  name 
)
protected

Helper to register an action sequence.

Definition at line 75 of file Geant4ActionContainer.cpp.

◆ runAction() [1/2]

Geant4RunActionSequence& dd4hep::sim::Geant4ActionContainer::runAction ( )
inline

Access run action sequence.

Definition at line 117 of file Geant4ActionContainer.h.

◆ runAction() [2/2]

Geant4RunActionSequence * Geant4ActionContainer::runAction ( bool  create)

Access run action sequence.

Definition at line 92 of file Geant4ActionContainer.cpp.

◆ sensitiveAction()

Geant4SensDetActionSequence * Geant4ActionContainer::sensitiveAction ( const std::string &  name)

Access to the sensitive detector action from the actioncontainer object.

Access to the sensitive detector action from the kernel object.

Definition at line 139 of file Geant4ActionContainer.cpp.

◆ sensitiveActions()

Geant4SensDetSequences & Geant4ActionContainer::sensitiveActions ( ) const

Access to the sensitive detector sequences from the actioncontainer object.

Access to the sensitive detector sequences from the kernel object.

Definition at line 134 of file Geant4ActionContainer.cpp.

◆ setContext()

void Geant4ActionContainer::setContext ( Geant4Context ctxt)
protected

Set the thread's context.

Definition at line 71 of file Geant4ActionContainer.cpp.

◆ stackingAction() [1/2]

Geant4StackingActionSequence& dd4hep::sim::Geant4ActionContainer::stackingAction ( )
inline

Access stacking action sequence.

Definition at line 145 of file Geant4ActionContainer.h.

◆ stackingAction() [2/2]

Geant4StackingActionSequence * Geant4ActionContainer::stackingAction ( bool  create)

Access stacking action sequence.

Definition at line 120 of file Geant4ActionContainer.cpp.

◆ steppingAction() [1/2]

Geant4SteppingActionSequence& dd4hep::sim::Geant4ActionContainer::steppingAction ( )
inline

Access stepping action sequence.

Definition at line 131 of file Geant4ActionContainer.h.

◆ steppingAction() [2/2]

Geant4SteppingActionSequence * Geant4ActionContainer::steppingAction ( bool  create)

Access stepping action sequence.

Definition at line 106 of file Geant4ActionContainer.cpp.

◆ terminate()

int Geant4ActionContainer::terminate ( )
virtual

Terminate all associated action instances.

Reimplemented in dd4hep::sim::Geant4Kernel.

Definition at line 51 of file Geant4ActionContainer.cpp.

◆ trackingAction() [1/2]

Geant4TrackingActionSequence& dd4hep::sim::Geant4ActionContainer::trackingAction ( )
inline

Access tracking action sequence.

Definition at line 138 of file Geant4ActionContainer.h.

◆ trackingAction() [2/2]

Geant4TrackingActionSequence * Geant4ActionContainer::trackingAction ( bool  create)

Access tracking action sequence.

Definition at line 113 of file Geant4ActionContainer.cpp.

◆ userInitialization() [1/2]

Geant4UserInitializationSequence& dd4hep::sim::Geant4ActionContainer::userInitialization ( )
inline

Access to the user initialization object.

Definition at line 170 of file Geant4ActionContainer.h.

◆ userInitialization() [2/2]

Geant4UserInitializationSequence * Geant4ActionContainer::userInitialization ( bool  create)

Access to the user initialization object.

Access to the physics list.

Definition at line 157 of file Geant4ActionContainer.cpp.

◆ workerContext()

Geant4Context * Geant4ActionContainer::workerContext ( )

Thread's Geant4 execution context.

Definition at line 65 of file Geant4ActionContainer.cpp.

Member Data Documentation

◆ m_constructionAction

Geant4DetectorConstructionSequence* dd4hep::sim::Geant4ActionContainer::m_constructionAction { nullptr }
protected

Reference to the Geant4 detector construction sequence.

Definition at line 79 of file Geant4ActionContainer.h.

◆ m_context

Geant4Context* dd4hep::sim::Geant4ActionContainer::m_context { nullptr }
protected

Geant4 worker context (thread specific)

Definition at line 64 of file Geant4ActionContainer.h.

◆ m_eventAction

Geant4EventActionSequence* dd4hep::sim::Geant4ActionContainer::m_eventAction { nullptr }
protected

Reference to the Geant4 event action.

Definition at line 71 of file Geant4ActionContainer.h.

◆ m_generatorAction

Geant4GeneratorActionSequence* dd4hep::sim::Geant4ActionContainer::m_generatorAction { nullptr }
protected

Reference to the Geant4 primary generator action.

Definition at line 67 of file Geant4ActionContainer.h.

◆ m_physicsList

Geant4PhysicsListActionSequence* dd4hep::sim::Geant4ActionContainer::m_physicsList { nullptr }
protected

Reference to the Geant4 physics list.

Definition at line 84 of file Geant4ActionContainer.h.

◆ m_runAction

Geant4RunActionSequence* dd4hep::sim::Geant4ActionContainer::m_runAction { nullptr }
protected

Reference to the Geant4 run action.

Definition at line 69 of file Geant4ActionContainer.h.

◆ m_sensDetActions

Geant4SensDetSequences* dd4hep::sim::Geant4ActionContainer::m_sensDetActions { nullptr }
protected

Reference to the Geant4 sensitive action sequences.

Definition at line 82 of file Geant4ActionContainer.h.

◆ m_stackingAction

Geant4StackingActionSequence* dd4hep::sim::Geant4ActionContainer::m_stackingAction { nullptr }
protected

Reference to the Geant4 stacking action.

Definition at line 77 of file Geant4ActionContainer.h.

◆ m_steppingAction

Geant4SteppingActionSequence* dd4hep::sim::Geant4ActionContainer::m_steppingAction { nullptr }
protected

Reference to the Geant4 step action.

Definition at line 75 of file Geant4ActionContainer.h.

◆ m_trackingAction

Geant4TrackingActionSequence* dd4hep::sim::Geant4ActionContainer::m_trackingAction { nullptr }
protected

Reference to the Geant4 track action.

Definition at line 73 of file Geant4ActionContainer.h.

◆ m_userInit

Geant4UserInitializationSequence* dd4hep::sim::Geant4ActionContainer::m_userInit { nullptr }
protected

Reference to the user initialization object.

Definition at line 86 of file Geant4ActionContainer.h.


The documentation for this class was generated from the following files: