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

Concrete implementation of the Geant4 user initialization action sequence. More...

Inheritance diagram for dd4hep::sim::Geant4UserActionInitialization:
G4VUserActionInitialization dd4hep::sim::SequenceHdl< Geant4UserInitializationSequence >

Public Member Functions

 Geant4UserActionInitialization (Geant4Context *ctxt, Geant4UserInitializationSequence *seq)
 Standard constructor. More...
 
virtual ~Geant4UserActionInitialization ()
 Default destructor. More...
 
virtual void Build () const final
 Build the actions for the worker thread. More...
 
virtual void BuildForMaster () const final
 Build the action sequences for the master thread. More...
 
- Public Member Functions inherited from dd4hep::sim::SequenceHdl< Geant4UserInitializationSequence >
 SequenceHdl ()
 Default constructor. More...
 
 SequenceHdl (Geant4Context *ctxt, Geant4UserInitializationSequence *seq)
 Initializing constructor. More...
 
virtual ~SequenceHdl ()
 Default destructor. More...
 
void _aquire (Geant4UserInitializationSequence *s)
 Aquire object reference. More...
 
void _release ()
 Release object. More...
 
void updateContext (Geant4Context *ctxt)
 Update Geant4Context for current call. More...
 
Geant4Contextcontext () const
 Access reference to the current active Geant4Context structure. More...
 
Geant4Kernelkernel () const
 Access reference to the current active Geant4Kernel structure. More...
 
void configureFiber (Geant4Context *ctxt)
 G4 callback in multi threaded mode to configure thread fiber. More...
 
void createClientContext (const G4Run *run)
 Create Geant4 run context. More...
 
void createClientContext (const G4Event *evt)
 Create Geant4 event context. More...
 
void destroyClientContext (const G4Run *)
 Destroy Geant4 run context. More...
 
void destroyClientContext (const G4Event *)
 Destroy Geant4 event context. More...
 

Additional Inherited Members

- Public Types inherited from dd4hep::sim::SequenceHdl< Geant4UserInitializationSequence >
typedef SequenceHdl< Geant4UserInitializationSequenceBase
 
- Public Attributes inherited from dd4hep::sim::SequenceHdl< Geant4UserInitializationSequence >
Geant4UserInitializationSequencem_sequence
 
Geant4Contextm_activeContext
 

Detailed Description

Concrete implementation of the Geant4 user initialization action sequence.

Author
M.Frank
Version
1.0

Definition at line 355 of file Geant4Exec.cpp.

Constructor & Destructor Documentation

◆ Geant4UserActionInitialization()

dd4hep::sim::Geant4UserActionInitialization::Geant4UserActionInitialization ( Geant4Context ctxt,
Geant4UserInitializationSequence seq 
)
inline

Standard constructor.

Definition at line 361 of file Geant4Exec.cpp.

◆ ~Geant4UserActionInitialization()

virtual dd4hep::sim::Geant4UserActionInitialization::~Geant4UserActionInitialization ( )
inlinevirtual

Default destructor.

Definition at line 365 of file Geant4Exec.cpp.

Member Function Documentation

◆ Build()

void dd4hep::sim::Geant4UserActionInitialization::Build ( ) const
finalvirtual

Build the actions for the worker thread.

Set user generator action sequence. Not optional, since event context is defined inside

Set the run action sequence. Not optional, since run context is defined/destroyed inside

Set the event action sequence. Not optional, since event context is destroyed inside

Set the tracking action sequence

Set the stepping action sequence

Set the stacking action sequence

Definition at line 439 of file Geant4Exec.cpp.

◆ BuildForMaster()

void dd4hep::sim::Geant4UserActionInitialization::BuildForMaster ( ) const
finalvirtual

Build the action sequences for the master thread.

Definition at line 489 of file Geant4Exec.cpp.


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