![]() |
ATLAS Offline Software
|
#include <FastSimulationBase.h>
Public Member Functions | |
| FastSimulationBase (const std::string &type, const std::string &name, const IInterface *parent) | |
| StatusCode | initializeFastSim () override |
| Construct and setup the fast simulation model. More... | |
| virtual StatusCode | BeginOfAthenaEvent () override |
| Begin of an athena event - do anything that needs to be done at the beginning of each athena event. More... | |
| virtual StatusCode | EndOfAthenaEvent () override |
| End of an athena event - do any tidying up required at the end of each athena event. More... | |
Protected Member Functions | |
| G4Region * | getRegion () const |
Protected Attributes | |
| Gaudi::Property< std::string > | m_regionName {this, "RegionName", ""} |
| The region to which this fast sim is assigned. More... | |
| Gaudi::Property< bool > | m_noRegions {this, "NoRegions", false} |
| This Fast Simulation has no regions associated with it. More... | |
Lightweight Gaudi tool base class for Geant4 fast-simulation models. It takes care of the per-thread creation of the concrete fast-simulation model and registering it for automatic Geant4 cleanup. Derived tools are responsible for implementing makeFastSimModel() and for assigning the returned model to the desired Geant4 regions, which can be accessed via the configured RegionName property or the getRegion() helper. Multi-threaded jobs will invoke initializeFastSim on every worker during detector construction, ensuring each thread instantiates its own model.
Definition at line 27 of file FastSimulationBase.h.
| FastSimulationBase::FastSimulationBase | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent | ||
| ) |
Definition at line 12 of file FastSimulationBase.cxx.
|
inlineoverridevirtual |
Begin of an athena event - do anything that needs to be done at the beginning of each athena event.
Definition at line 42 of file FastSimulationBase.h.
|
inlineoverridevirtual |
End of an athena event - do any tidying up required at the end of each athena event.
Definition at line 45 of file FastSimulationBase.h.
|
protected |
Definition at line 17 of file FastSimulationBase.cxx.
|
override |
Construct and setup the fast simulation model.
This method invokes the makeFastSimModel of the derived concrete tool type. It is the derived class's responsibility to assign the fast simulation model to the correct regions. The fast simulation model is registered for deletion. In multi-threaded jobs, this method is called once on each geant4 worker thread during detector construction (ConstructSDandField).
Definition at line 27 of file FastSimulationBase.cxx.
|
protected |
This Fast Simulation has no regions associated with it.
Definition at line 54 of file FastSimulationBase.h.
|
protected |
The region to which this fast sim is assigned.
Definition at line 52 of file FastSimulationBase.h.
1.8.18