![]() |
ATLAS Offline Software
|
Geant4 AlgTool to create a ISFParticle at a volume entry/exit. More...
#include <G4LegacyTransportTool.h>
Classes | |
| struct | Slot |
Public Member Functions | |
| G4LegacyTransportTool (const std::string &, const std::string &, const IInterface *) | |
| Constructor. | |
| virtual | ~G4LegacyTransportTool ()=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 >) 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 |
Private Attributes | |
Configurable Properties | |
| 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} |
| SG::SlotSpecificObj< Slot > m_slots | ATLAS_THREAD_SAFE |
| Gaudi::Property< std::string > | m_mcEventCollectionName |
| PublicToolHandle< ISF::IG4RunManagerHelper > | m_g4RunManagerHelper |
| Helper Tool to provide G4RunManager. | |
| G4AtlasRunManager * | m_pRunMgr {} |
| 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 60 of file G4LegacyTransportTool.h.
| iGeant4::G4LegacyTransportTool::G4LegacyTransportTool | ( | const std::string & | type, |
| const std::string & | name, | ||
| const IInterface * | parent ) |
Constructor.
Definition at line 55 of file G4LegacyTransportTool.cxx.
|
virtualdefault |
Destructor.
| void initializeOnce iGeant4::G4LegacyTransportTool::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 422 of file G4LegacyTransportTool.cxx.
|
finaloverridevirtual |
AlgTool finalize method.
Definition at line 202 of file G4LegacyTransportTool.cxx.
| void iGeant4::G4LegacyTransportTool::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 235 of file G4LegacyTransportTool.cxx.
|
private |
Definition at line 400 of file G4LegacyTransportTool.cxx.
|
finaloverridevirtual |
AlgTool initialize method.
Reimplemented from ISF::BaseSimulatorTool.
Definition at line 65 of file G4LegacyTransportTool.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 353 of file G4LegacyTransportTool.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 331 of file G4LegacyTransportTool.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 107 of file G4LegacyTransportTool.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 245 of file G4LegacyTransportTool.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 266 of file G4LegacyTransportTool.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 139 of file G4LegacyTransportTool.h.
|
private |
Definition at line 124 of file G4LegacyTransportTool.h.
|
private |
Definition at line 125 of file G4LegacyTransportTool.h.
|
private |
Definition at line 160 of file G4LegacyTransportTool.h.
|
protectedinherited |
The timing service for general usage.
Definition at line 115 of file BaseSimulatorTool.h.
|
private |
Definition at line 175 of file G4LegacyTransportTool.h.
|
private |
Definition at line 122 of file G4LegacyTransportTool.h.
|
private |
Definition at line 129 of file G4LegacyTransportTool.h.
|
private |
Fast Simulation Master Tool.
Definition at line 186 of file G4LegacyTransportTool.h.
|
private |
Definition at line 150 of file G4LegacyTransportTool.h.
|
private |
Commands to send to the G4 UI.
Definition at line 155 of file G4LegacyTransportTool.h.
|
private |
Helper Tool to provide G4RunManager.
Definition at line 143 of file G4LegacyTransportTool.h.
|
private |
Service to convert ISF_Particles into a G4Event.
Definition at line 177 of file G4LegacyTransportTool.h.
|
private |
Definition at line 148 of file G4LegacyTransportTool.h.
|
private |
Definition at line 140 of file G4LegacyTransportTool.h.
|
private |
Definition at line 126 of file G4LegacyTransportTool.h.
|
private |
Definition at line 188 of file G4LegacyTransportTool.h.
|
private |
Definition at line 149 of file G4LegacyTransportTool.h.
|
private |
Physics List Service.
Definition at line 180 of file G4LegacyTransportTool.h.
|
private |
Definition at line 146 of file G4LegacyTransportTool.h.
|
private |
Definition at line 153 of file G4LegacyTransportTool.h.
|
private |
Definition at line 167 of file G4LegacyTransportTool.h.
|
private |
Definition at line 152 of file G4LegacyTransportTool.h.
|
private |
Definition at line 151 of file G4LegacyTransportTool.h.
|
private |
Definition at line 164 of file G4LegacyTransportTool.h.
|
private |
Definition at line 128 of file G4LegacyTransportTool.h.
|
private |
Sensitive Detector Master Tool.
Definition at line 183 of file G4LegacyTransportTool.h.
|
private |
Activate multi-threading configuration.
Definition at line 158 of file G4LegacyTransportTool.h.
|
private |
user action service
Definition at line 173 of file G4LegacyTransportTool.h.
|
private |
Definition at line 170 of file G4LegacyTransportTool.h.