![]() |
ATLAS Offline Software
|
Geant4 AlgTool to create a ISFParticle at a volume entry/exit. More...
#include <TransportTool.h>
Public Member Functions | |
| G4TransportTool (const std::string &, const std::string &, const IInterface *) | |
| Constructor. | |
| virtual | ~G4TransportTool ()=default |
| Destructor. | |
| virtual StatusCode | initialize () override final |
| AlgTool initialize method. | |
| void initializeOnce | ATLAS_NOT_THREAD_SAFE () |
| G4 initialization called only by the first tool instance. | |
| virtual StatusCode | finalize () override final |
| AlgTool finalize method. | |
| void | finalizeOnce () |
| G4 finalization called only by the first tool instance. | |
| virtual StatusCode | simulate (const EventContext &ctx, ISF::ISFParticle &isp, ISF::ISFParticleContainer &secondaries, McEventCollection *mcEventCollection, std::shared_ptr< HitCollectionMap > hitCollections) override |
| Simulation call for individual particles. | |
| virtual StatusCode | simulateVector (const EventContext &ctx, const ISF::ISFParticleVector &particles, ISF::ISFParticleContainer &secondaries, McEventCollection *mcEventCollection, std::shared_ptr< HitCollectionMap > hitCollections, McEventCollection *shadowTruth=nullptr) override |
| Simulation call for vectors of particles. | |
| virtual StatusCode | setupEvent (const EventContext &, HitCollectionMap &) override |
| Create data containers for an event. | |
| virtual StatusCode | releaseEvent (const EventContext &, HitCollectionMap &) override |
| Finalise data containers for an event. | |
| virtual ISF::SimulationFlavor | simFlavor () const override |
| virtual StatusCode | releaseEvent (const EventContext &) |
| Finalise data containers for an event. | |
| virtual StatusCode | setupEvent (const EventContext &) |
| Create data containers for an event. | |
| virtual StatusCode | simulate (const EventContext &, ISFParticle &, ISFParticleContainer &, McEventCollection *) |
| Simulation call for individual particles. | |
| virtual StatusCode | simulateVector (const EventContext &, const ISFParticleVector &, ISFParticleContainer &, McEventCollection *, McEventCollection *) |
| Simulation call for vectors of particles. | |
| virtual StatusCode | simulate (const EventContext &, ISFParticle &, ISFParticleContainer &, McEventCollection *) |
| Simulation call for individual particles. | |
| virtual StatusCode | simulateVector (const EventContext &, const ISFParticleVector &, ISFParticleContainer &, McEventCollection *, McEventCollection *) |
| Simulation call for vectors of particles. | |
| virtual StatusCode | setupEventST (HitCollectionMap &hitCollections) |
| Create data containers for an event (called by ISimulationSvc) | |
| virtual StatusCode | setupEventST () |
| Create data containers for an event (called by ISimulationSvc) | |
| virtual StatusCode | releaseEventST (HitCollectionMap &hitCollections) |
| Finalise data containers for an event (called by ISimulationSvc) | |
| virtual StatusCode | releaseEventST () |
| Finalise data containers for an event (called by ISimulationSvc) | |
| BaseSimulatorTool (const std::string &type, const std::string &name, const IInterface *parent) | |
| Standard BaseSimulatorTool constructor. | |
| virtual StatusCode | sysInitialize () override |
| Gaudi sysInitialize() methods. | |
| const ChronoEntity * | chronoStart (const IChronoSvc::ChronoTag &tag) |
| wrapper call to start chrono with given tag | |
| const ChronoEntity * | chronoStop (const IChronoSvc::ChronoTag &tag) |
| wrapper call to stop chrono with given tag | |
Protected Attributes | |
| ServiceHandle< IChronoStatSvc > | m_chrono {this, "ChronoStatService", "ChronoStatSvc"} |
| The timing service for general usage. | |
Private Member Functions | |
| void | commandLog (int returnCode, const std::string &commandString) const |
| This command prints a message about a G4Command depending on its returnCode. | |
| HepMC::GenEvent * | genEvent (McEventCollection *mcEventCollection) const |
Configurable Properties | |
| using | passbackAction_t = G4UA::iGeant4::TrackProcessorUserActionBase |
| using | passbackActionMap_t |
| Gaudi::Property< bool > | m_doTiming {this, "PrintTimingInfo", true, ""} |
| float | m_accumulatedEventTime {0.} |
| float | m_accumulatedEventTimeSq {0.} |
| unsigned int | m_nrOfEntries {0} |
| G4Timer * | m_runTimer {nullptr} |
| G4Timer * | m_eventTimer {nullptr} |
| passbackActionMap_t m_secondaryActions | ATLAS_THREAD_SAFE |
| Gaudi::Property< std::string > | m_mcEventCollectionName |
| Gaudi::Property< std::string > | m_libList {this, "Dll", "", ""} |
| Gaudi::Property< std::string > | m_physList {this, "Physics", "", ""} |
| Gaudi::Property< std::string > | m_fieldMap {this, "FieldMap", "", ""} |
| Gaudi::Property< bool > | m_releaseGeoModel {this, "ReleaseGeoModel", true, ""} |
| Gaudi::Property< bool > | m_recordFlux {this, "RecordFlux", false, ""} |
| Gaudi::Property< bool > | m_quietMode {this, "QuietMode", false, ""} |
| Gaudi::Property< std::vector< std::string > > | m_g4commands |
| Commands to send to the G4 UI. | |
| Gaudi::Property< bool > | m_useMT |
| Activate multi-threading configuration. | |
| Gaudi::Property< bool > | m_activateParallelGeometries |
| ServiceHandle< IAthRNGSvc > | m_rndmGenSvc |
| Gaudi::Property< std::string > | m_randomStreamName |
| Random Stream Name. | |
| ServiceHandle< IUserLimitsSvc > | m_userLimitsSvc |
| ServiceHandle< G4UA::IUserActionSvc > | m_userActionSvc |
| user action service | |
| PublicToolHandle< IDetectorConstructionTool > | m_detConstruction {this, "DetectorConstruction", "", "Tool handle of the DetectorConstruction"} |
| ServiceHandle< ISF::IInputConverter > | m_inputConverter |
| Service to convert ISF_Particles into a G4Event. | |
| ServiceHandle< IPhysicsListSvc > | m_physListSvc |
| Physics List Service. | |
| PublicToolHandle< ISensitiveDetectorMasterTool > | m_senDetTool |
| Sensitive Detector Master Tool. | |
| PublicToolHandle< IFastSimulationMasterTool > | m_fastSimTool |
| Fast Simulation Master Tool. | |
| PublicToolHandleArray< IPhysicsInitializationTool > | m_physicsInitializationTools {this, "PhysicsInitializationTools", {}, "Physics initialization happening after Geant4 initialization"} |
Geant4 AlgTool to create a ISFParticle at a volume entry/exit.
Definition at line 67 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 138 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 139 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
| iGeant4::G4TransportTool::G4TransportTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Constructor.
Definition at line 59 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx.
|
virtualdefault |
Destructor.
| void initializeOnce iGeant4::G4TransportTool::ATLAS_NOT_THREAD_SAFE | ( | ) |
G4 initialization called only by the first tool instance.
This is done (for now) because we get multiple tool instances in hive.
|
inlineinherited |
Standard BaseSimulatorTool constructor.
Definition at line 40 of file BaseSimulatorTool.h.
|
inlineinherited |
wrapper call to start chrono with given tag
Definition at line 98 of file BaseSimulatorTool.h.
|
inlineinherited |
wrapper call to stop chrono with given tag
Definition at line 104 of file BaseSimulatorTool.h.
|
private |
This command prints a message about a G4Command depending on its returnCode.
Definition at line 477 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx.
|
finaloverridevirtual |
AlgTool finalize method.
Definition at line 222 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx.
| void iGeant4::G4TransportTool::finalizeOnce | ( | ) |
G4 finalization called only by the first tool instance.
This is done (for now) because we get multiple tool instances in hive.
Definition at line 256 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx.
|
private |
Definition at line 455 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx.
|
finaloverridevirtual |
AlgTool initialize method.
Reimplemented from ISF::BaseSimulatorTool.
Definition at line 69 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx.
|
inlinevirtual |
Finalise data containers for an event.
Reimplemented from ISF::BaseSimulatorG4Tool.
Definition at line 87 of file BaseSimulatorG4Tool.h.
|
overridevirtual |
Finalise data containers for an event.
Implements ISF::BaseSimulatorG4Tool.
Definition at line 408 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx.
|
inlinevirtualinherited |
Finalise data containers for an event (called by ISimulationSvc)
Reimplemented from ISF::BaseSimulatorTool.
Definition at line 92 of file BaseSimulatorG4Tool.h.
|
inlinevirtualinherited |
Finalise data containers for an event (called by ISimulationSvc)
Definition at line 58 of file BaseSimulatorG4Tool.h.
|
inlinevirtual |
Create data containers for an event.
Reimplemented from ISF::BaseSimulatorG4Tool.
Definition at line 79 of file BaseSimulatorG4Tool.h.
|
overridevirtual |
Create data containers for an event.
Implements ISF::BaseSimulatorG4Tool.
Definition at line 385 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx.
|
inlinevirtualinherited |
Create data containers for an event (called by ISimulationSvc)
Reimplemented from ISF::BaseSimulatorTool.
Definition at line 84 of file BaseSimulatorG4Tool.h.
|
inlinevirtualinherited |
Create data containers for an event (called by ISimulationSvc)
Definition at line 49 of file BaseSimulatorG4Tool.h.
|
inlineoverridevirtual |
Definition at line 112 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
inline |
Simulation call for individual particles.
Definition at line 65 of file BaseSimulatorG4Tool.h.
|
overridevirtual |
Simulation call for individual particles.
Process ParticleState from particle stack
Implements ISF::BaseSimulatorG4Tool.
Definition at line 265 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx.
|
inlinevirtualinherited |
Simulation call for individual particles.
Reimplemented from ISF::BaseSimulatorTool.
Definition at line 65 of file BaseSimulatorG4Tool.h.
|
inline |
Simulation call for vectors of particles.
Definition at line 71 of file BaseSimulatorG4Tool.h.
|
overridevirtual |
Simulation call for vectors of particles.
Process ParticleState from particle stack
Implements ISF::BaseSimulatorG4Tool.
Definition at line 286 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx.
|
inlinevirtualinherited |
Simulation call for vectors of particles.
Reimplemented from ISF::BaseSimulatorTool.
Definition at line 71 of file BaseSimulatorG4Tool.h.
|
inlineoverridevirtualinherited |
Gaudi sysInitialize() methods.
Definition at line 49 of file BaseSimulatorTool.h.
|
mutableprivate |
Definition at line 143 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 129 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 130 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 160 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
protectedinherited |
The timing service for general usage.
Definition at line 115 of file BaseSimulatorTool.h.
|
private |
Definition at line 175 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 127 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 134 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Fast Simulation Master Tool.
Definition at line 186 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 150 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Commands to send to the G4 UI.
Definition at line 155 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Service to convert ISF_Particles into a G4Event.
Definition at line 177 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 148 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 145 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 131 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 188 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 149 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Physics List Service.
Definition at line 180 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 153 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 167 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 152 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 151 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 164 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 133 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Sensitive Detector Master Tool.
Definition at line 183 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Activate multi-threading configuration.
Definition at line 158 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
user action service
Definition at line 173 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.
|
private |
Definition at line 170 of file ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h.