ATLAS Offline Software
|
#include <Geant4SimSvc.h>
Public Member Functions | |
Geant4SimSvc (const std::string &name, ISvcLocator *pSvcLocator) | |
Constructor. More... | |
virtual | ~Geant4SimSvc () |
Destructor. More... | |
virtual StatusCode | initialize () override |
Athena algorithm's interface methods. More... | |
virtual StatusCode | finalize () override |
framework methods More... | |
virtual StatusCode | simulate (ISF::ISFParticle &isp, McEventCollection *mcEventCollection) override |
Simulation Call More... | |
virtual StatusCode | simulateVector (const ISF::ISFParticleVector &particles, McEventCollection *mcEventCollection, McEventCollection *shadowTruth=nullptr) override |
Simulation Call for vector of ISF particles. More... | |
virtual StatusCode | setupEvent () override |
Setup Event chain - in case of a begin-of event action is needed. More... | |
virtual StatusCode | releaseEvent () override |
Release Event chain - in case of an end-of event action is needed. More... | |
virtual StatusCode | sysInitialize () override |
Gaudi sysInitialize() methods. More... | |
const std::string & | simSvcDescriptor () override |
Return the simulation service descriptor. More... | |
virtual StatusCode | setParticleBroker (IParticleBroker *broker) override |
Inform the SimulationSvc about the ParticleBroker svc. More... | |
const ChronoEntity * | chronoStart (const IChronoSvc::ChronoTag &tag) |
wrapper call to start chrono with given tag More... | |
const ChronoEntity * | chronoStop (const IChronoSvc::ChronoTag &tag) |
wrapper call to stop chrono with given tag More... | |
const ServiceHandle< StoreGateSvc > & | evtStore () const |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
ServiceHandle< StoreGateSvc > & | evtStore () |
const ServiceHandle< StoreGateSvc > & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More... | |
ServiceHandle< StoreGateSvc > & | detStore () |
template<class T > | |
StatusCode | retrieveTool (ToolHandle< T > &thandle) |
templated Tool retrieval - gives unique handling & look and feel More... | |
template<class T > | |
StatusCode | retrieveTools (ToolHandleArray< T > &thandleArray) |
templated Tool retrieval - gives unique handling & look and feel More... | |
template<class T > | |
StatusCode | recordCollection (T *&coll, const std::string &collName) const |
templated record collection method, will create a new one if not existing More... | |
template<class T > | |
StatusCode | retrieveCollection (T *&coll, const std::string &collName, bool forceBreak=true) const |
templated retrieve collection method, boolean steers that force break More... | |
Protected Attributes | |
Gaudi::Property< std::string > | m_simDescr |
The simulator service descriptor. More... | |
Gaudi::Property< std::string > | m_screenOutputPrefix |
Screen output refinement. More... | |
ServiceHandle< IChronoStatSvc > | m_chrono {this, "ChronoStatService", "ChronoStatSvc"} |
The timing service for general usage. More... | |
IParticleBroker * | m_particleBroker {} |
The particle service used to push particles into the simulation. More... | |
Private Member Functions | |
Geant4SimSvc () | |
Default constructor. More... | |
Private Attributes | |
PublicToolHandle< ISF::ISimulatorTool > | m_simulatorTool {this, "SimulatorTool", "", ""} |
ServiceHandle< StoreGateSvc > | m_evtStore |
Handle to StoreGate (event store by default) More... | |
ServiceHandle< StoreGateSvc > | m_detStore |
Handle to StoreGate (detector store by default) More... | |
Definition at line 27 of file Geant4SimSvc.h.
iGeant4::Geant4SimSvc::Geant4SimSvc | ( | const std::string & | name, |
ISvcLocator * | pSvcLocator | ||
) |
Constructor.
Definition at line 9 of file Geant4SimSvc.cxx.
|
virtual |
|
private |
Default constructor.
|
inlineinherited |
wrapper call to start chrono with given tag
Definition at line 104 of file BaseSimulationSvc.h.
|
inlineinherited |
wrapper call to stop chrono with given tag
Definition at line 110 of file BaseSimulationSvc.h.
|
inlineinherited |
Definition at line 125 of file BaseSimulationSvc.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 124 of file BaseSimulationSvc.h.
|
inlineinherited |
Definition at line 119 of file BaseSimulationSvc.h.
|
inlineinherited |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 118 of file BaseSimulationSvc.h.
|
overridevirtual |
framework methods
Definition at line 25 of file Geant4SimSvc.cxx.
|
overridevirtual |
Athena algorithm's interface methods.
framework methods
Definition at line 18 of file Geant4SimSvc.cxx.
|
inlineinherited |
templated record collection method, will create a new one if not existing
Definition at line 150 of file BaseSimulationSvc.h.
|
overridevirtual |
Release Event chain - in case of an end-of event action is needed.
Reimplemented from ISF::BaseSimulationSvc.
Definition at line 35 of file Geant4SimSvc.cxx.
|
inlineinherited |
templated retrieve collection method, boolean steers that force break
Definition at line 164 of file BaseSimulationSvc.h.
|
inlineinherited |
templated Tool retrieval - gives unique handling & look and feel
Definition at line 128 of file BaseSimulationSvc.h.
|
inlineinherited |
templated Tool retrieval - gives unique handling & look and feel
Definition at line 139 of file BaseSimulationSvc.h.
|
inlineoverridevirtualinherited |
Inform the SimulationSvc about the ParticleBroker svc.
Definition at line 77 of file BaseSimulationSvc.h.
|
overridevirtual |
Setup Event chain - in case of a begin-of event action is needed.
Reimplemented from ISF::BaseSimulationSvc.
Definition at line 30 of file Geant4SimSvc.cxx.
|
inlineoverrideinherited |
|
overridevirtual |
Simulation Call
Simulation Call.
Reimplemented from ISF::BaseSimulationSvc.
Definition at line 41 of file Geant4SimSvc.cxx.
|
overridevirtual |
Simulation Call for vector of ISF particles.
Simulation Call.
Reimplemented from ISF::BaseSimulationSvc.
Definition at line 50 of file Geant4SimSvc.cxx.
|
inlineoverridevirtualinherited |
|
protectedinherited |
The timing service for general usage.
Definition at line 202 of file BaseSimulationSvc.h.
|
privateinherited |
Handle to StoreGate (detector store by default)
Definition at line 188 of file BaseSimulationSvc.h.
|
privateinherited |
Handle to StoreGate (event store by default)
Definition at line 184 of file BaseSimulationSvc.h.
|
protectedinherited |
The particle service used to push particles into the simulation.
Definition at line 205 of file BaseSimulationSvc.h.
|
protectedinherited |
Screen output refinement.
Definition at line 198 of file BaseSimulationSvc.h.
|
protectedinherited |
The simulator service descriptor.
Definition at line 194 of file BaseSimulationSvc.h.
|
private |
Definition at line 56 of file Geant4SimSvc.h.