k4SimGeant4
|
Geant simulation algorithm. More...
#include <SimG4Alg.h>
Public Member Functions | |
SimG4Alg (const std::string &, ISvcLocator *) | |
virtual | ~SimG4Alg () |
virtual StatusCode | initialize () final |
Initialize. | |
virtual StatusCode | execute (const EventContext &) const final |
Execute the simulation. | |
virtual StatusCode | finalize () final |
Finalize. | |
Private Attributes | |
ServiceHandle< ISimG4Svc > | m_geantSvc |
Pointer to the interface of Geant simulation service. | |
PublicToolHandleArray< ISimG4SaveOutputTool > | m_saveTools |
Handle to the tools saving the output. | |
ToolHandle< ISimG4EventProviderTool > | m_eventTool |
Handle for the tool that creates the G4Event. | |
Geant simulation algorithm.
Controls the event flow: translates the EDM event to G4Event, passes it to SimG4Svc, retrieves it after the finished simulation, and stores the output as specified in tools. It takes MCParticleCollection ('genParticles') as the input as well as a list of names of tools that define the EDM output ('outputs'). For more information please see.
|
explicit |
|
virtual |
|
finalvirtual |
Execute the simulation.
Translation of MCParticleCollection to G4Event is done using EDM2G4() method. Then, G4Event is passed to SimG4Svc for the simulation and retrieved afterwards. The tools m_saveTools are used to save the output from the retrieved events. Finally, the event is terminated.
|
finalvirtual |
Finalize.
|
finalvirtual |
Initialize.
|
mutableprivate |
Handle for the tool that creates the G4Event.
|
private |
Pointer to the interface of Geant simulation service.
|
mutableprivate |
Handle to the tools saving the output.