![]() |
ATLAS Offline Software
|
#include <BaseSimulationSvc.h>
Public Types | |
typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Public Member Functions | |
BaseSimulationSvc (const std::string &name, ISvcLocator *pSvcLocator) | |
virtual | ~BaseSimulationSvc () |
Destructor. More... | |
virtual StatusCode | sysInitialize () override |
Gaudi sysInitialize() methods. More... | |
std::string & | simSvcDescriptor () override |
Return the simulation service descriptor. 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 | setParticleBroker (IParticleBroker *broker) override |
Inform the SimulationSvc about the ParticleBroker svc. More... | |
virtual StatusCode | simulateVector (const ISFParticleVector &particles, McEventCollection *mcEventCollection, McEventCollection *) override |
Simulation call for vectors of particles. More... | |
virtual StatusCode | simulate (ISFParticle &isp, McEventCollection *mcEventCollection) override |
Simulation call for individual particles. 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 StoreGateSvc_t & | evtStore () const |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More... | |
StoreGateSvc_t & | evtStore () |
const StoreGateSvc_t & | detStore () const |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More... | |
StoreGateSvc_t & | 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 | |
std::string | m_simDescr {""} |
The simulator service descriptor. More... | |
std::string | m_screenOutputPrefix {"isf >> "} |
Screen output refinement - can be changed by declareProperty() More... | |
std::string | m_chronoSvcName {"ChronoStatSvc"} |
Name of the timing service - can be set by declareProperty() More... | |
IChronoStatSvc * | m_chrono {} |
The timing service for general usage. More... | |
IParticleBroker * | m_particleBroker {} |
The particle service used to push particles into the simulation. More... | |
Private Member Functions | |
BaseSimulationSvc () | |
Default constructor. More... | |
Private Attributes | |
StoreGateSvc_t | m_evtStore |
Pointer to StoreGate (event store by default) More... | |
StoreGateSvc_t | m_detStore |
Pointer to StoreGate (detector store by default) More... | |
Concrete base class for all simulation services.
It facilitates the use of event store and detector store, provides record and retrieve methods and initializes the ChronoStatSvc.
Definition at line 40 of file BaseSimulationSvc.h.
Definition at line 135 of file BaseSimulationSvc.h.
|
inline |
Definition at line 44 of file BaseSimulationSvc.h.
|
inlinevirtual |
|
private |
Default constructor.
wrapper call to start chrono with given tag
Definition at line 124 of file BaseSimulationSvc.h.
wrapper call to stop chrono with given tag
Definition at line 130 of file BaseSimulationSvc.h.
|
inline |
Definition at line 147 of file BaseSimulationSvc.h.
|
inline |
The standard StoreGateSvc/DetectorStore
Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 146 of file BaseSimulationSvc.h.
|
inline |
Definition at line 141 of file BaseSimulationSvc.h.
|
inline |
The standard StoreGateSvc
(event store) Returns (kind of) a pointer to the StoreGateSvc
.
Definition at line 140 of file BaseSimulationSvc.h.
|
inline |
templated record collection method, will create a new one if not existing
Definition at line 172 of file BaseSimulationSvc.h.
|
inlineoverridevirtual |
Release Event chain - in case of an end-of event action is needed.
Reimplemented in ISF::DNNCaloSimSvc, iGeant4::Geant4SimSvc, and ISF::LegacySimSvc.
Definition at line 93 of file BaseSimulationSvc.h.
|
inline |
templated retrieve collection method, boolean steers that force break
Definition at line 186 of file BaseSimulationSvc.h.
|
inline |
templated Tool retrieval - gives unique handling & look and feel
Definition at line 150 of file BaseSimulationSvc.h.
|
inline |
templated Tool retrieval - gives unique handling & look and feel
Definition at line 161 of file BaseSimulationSvc.h.
|
inlineoverridevirtual |
Inform the SimulationSvc about the ParticleBroker svc.
Definition at line 97 of file BaseSimulationSvc.h.
|
inlineoverridevirtual |
Setup Event chain - in case of a begin-of event action is needed.
Reimplemented in ISF::DNNCaloSimSvc, iGeant4::Geant4SimSvc, and ISF::LegacySimSvc.
Definition at line 89 of file BaseSimulationSvc.h.
|
inlineoverride |
|
inlineoverridevirtual |
Simulation call for individual particles.
Simulation Call — hand over to the particleProcessor if it exists.
Reimplemented in ISF::LegacySimSvc, ISF::DNNCaloSimSvc, and iGeant4::Geant4SimSvc.
Definition at line 232 of file BaseSimulationSvc.h.
|
inlineoverridevirtual |
Simulation call for vectors of particles.
Reimplemented in iGeant4::Geant4SimSvc.
Definition at line 103 of file BaseSimulationSvc.h.
|
inlineoverridevirtual |
|
protected |
The timing service for general usage.
Definition at line 223 of file BaseSimulationSvc.h.
|
protected |
Name of the timing service - can be set by declareProperty()
Definition at line 220 of file BaseSimulationSvc.h.
|
private |
Pointer to StoreGate (detector store by default)
Definition at line 209 of file BaseSimulationSvc.h.
|
private |
Pointer to StoreGate (event store by default)
Definition at line 206 of file BaseSimulationSvc.h.
|
protected |
The particle service used to push particles into the simulation.
Definition at line 226 of file BaseSimulationSvc.h.
|
protected |
Screen output refinement - can be changed by declareProperty()
Definition at line 217 of file BaseSimulationSvc.h.
|
protected |
The simulator service descriptor.
Definition at line 214 of file BaseSimulationSvc.h.