ATLAS Offline Software
|
#include <G4LegacyTransportTool.h>
Classes | |
struct | Slot |
Public Member Functions | |
G4LegacyTransportTool (const std::string &, const std::string &, const IInterface *) | |
Constructor. More... | |
virtual | ~G4LegacyTransportTool ()=default |
Destructor. More... | |
virtual StatusCode | initialize () override final |
AlgTool initialize method. More... | |
void initializeOnce | ATLAS_NOT_THREAD_SAFE () |
G4 initialization called only by the first tool instance. More... | |
virtual StatusCode | finalize () override final |
AlgTool finalize method. More... | |
void | finalizeOnce () |
G4 finalization called only by the first tool instance. More... | |
virtual StatusCode | simulate (const EventContext &ctx, ISF::ISFParticle &isp, ISF::ISFParticleContainer &secondaries, McEventCollection *mcEventCollection) override |
virtual StatusCode | simulateVector (const EventContext &ctx, const ISF::ISFParticleVector &particles, ISF::ISFParticleContainer &secondaries, McEventCollection *mcEventCollection, McEventCollection *shadowTruth=nullptr) override |
Simulation call for vectors of particles. More... | |
virtual StatusCode | setupEvent (const EventContext &) override |
Setup Event chain - in case of a begin-of event action is needed. More... | |
virtual StatusCode | releaseEvent (const EventContext &) override |
Release Event chain - in case of an end-of event action is needed. More... | |
virtual ISF::SimulationFlavor | simFlavor () const override |
virtual StatusCode | sysInitialize () override |
Gaudi sysInitialize() methods. More... | |
virtual StatusCode | setupEventST () override |
Setup Event chain - in case of a begin-of event action is needed (called by ISimulationSvc) More... | |
virtual StatusCode | releaseEventST () override |
Release Event chain - in case of an end-of event action is needed (called by ISimulationSvc) 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... | |
Protected Attributes | |
ServiceHandle< IChronoStatSvc > | m_chrono {this, "ChronoStatService", "ChronoStatSvc"} |
The timing service for general usage. More... | |
Private Member Functions | |
void | commandLog (int returnCode, const std::string &commandString) const |
This command prints a message about a G4Command depending on its returnCode. More... | |
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 {this, "McEventCollection", "TruthEvent", ""} |
PublicToolHandle< ISF::IG4RunManagerHelper > | m_g4RunManagerHelper {this, "G4RunManagerHelper", "iGeant4::G4RunManagerHelper/G4RunManagerHelper", ""} |
Helper Tool to provide G4RunManager. More... | |
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 {this, "G4Commands", {}, "Commands to send to the G4UI"} |
Commands to send to the G4 UI. More... | |
Gaudi::Property< bool > | m_useMT {this,"MultiThreading", false, "Multi-threading specific settings"} |
Activate multi-threading configuration. More... | |
Gaudi::Property< bool > | m_activateParallelGeometries {this, "ActivateParallelWorlds", false, "Toggle on/off the G4 parallel geometry system"} |
ServiceHandle< IAthRNGSvc > | m_rndmGenSvc {this, "RandomNumberService", "AthRNGSvc", ""} |
Gaudi::Property< std::string > | m_randomStreamName {this, "RandomStreamName", "Geant4", ""} |
Random Stream Name. More... | |
ServiceHandle< IUserLimitsSvc > | m_userLimitsSvc {this, "UserLimitsSvc", "UserLimitsSvc", ""} |
ServiceHandle< G4UA::IUserActionSvc > | m_userActionSvc {this, "UserActionSvc", "", ""} |
user action service More... | |
ServiceHandle< IDetectorGeometrySvc > | m_detGeoSvc {this, "DetGeoSvc", "DetectorGeometrySvc", ""} |
Detector Geometry Service (builds G4 Geometry) More... | |
ServiceHandle< ISF::IInputConverter > | m_inputConverter {this, "InputConverter", "ISF_InputConverter", ""} |
Service to convert ISF_Particles into a G4Event. More... | |
ServiceHandle< IPhysicsListSvc > | m_physListSvc {this, "PhysicsListSvc", "PhysicsListSvc", ""} |
Physics List Service. More... | |
PublicToolHandle< ISensitiveDetectorMasterTool > | m_senDetTool {this, "SenDetMasterTool", "SensitiveDetectorMasterTool", ""} |
Sensitive Detector Master Tool. More... | |
PublicToolHandle< IFastSimulationMasterTool > | m_fastSimTool {this, "FastSimMasterTool", "FastSimulationMasterTool", ""} |
Fast Simulation Master Tool. More... | |
Geant4 AlgTool to create a ISFParticle at a volume entry/exit
Definition at line 58 of file G4LegacyTransportTool.h.
iGeant4::G4LegacyTransportTool::G4LegacyTransportTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
|
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 |
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 402 of file G4LegacyTransportTool.cxx.
|
finaloverridevirtual |
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 230 of file G4LegacyTransportTool.cxx.
|
private |
Definition at line 380 of file G4LegacyTransportTool.cxx.
|
finaloverridevirtual |
AlgTool initialize method.
Reimplemented from ISF::BaseSimulatorTool.
Definition at line 65 of file G4LegacyTransportTool.cxx.
|
overridevirtual |
Release Event chain - in case of an end-of event action is needed.
Reimplemented from ISF::BaseSimulatorTool.
Definition at line 334 of file G4LegacyTransportTool.cxx.
|
inlineoverridevirtualinherited |
Release Event chain - in case of an end-of event action is needed (called by ISimulationSvc)
Reimplemented in ISF::FastCaloSimV2Tool.
Definition at line 94 of file BaseSimulatorTool.h.
|
overridevirtual |
Setup Event chain - in case of a begin-of event action is needed.
Reimplemented from ISF::BaseSimulatorTool.
Definition at line 312 of file G4LegacyTransportTool.cxx.
|
inlineoverridevirtualinherited |
Setup Event chain - in case of a begin-of event action is needed (called by ISimulationSvc)
Reimplemented in ISF::FastCaloSimV2Tool.
Definition at line 67 of file BaseSimulatorTool.h.
|
inlineoverridevirtual |
Definition at line 89 of file G4LegacyTransportTool.h.
|
overridevirtual |
Process ParticleState from particle stack
Reimplemented from ISF::BaseSimulatorTool.
Definition at line 240 of file G4LegacyTransportTool.cxx.
|
overridevirtual |
Simulation call for vectors of particles.
Process ParticleState from particle stack
Reimplemented from ISF::BaseSimulatorTool.
Definition at line 257 of file G4LegacyTransportTool.cxx.
|
inlineoverridevirtualinherited |
|
mutableprivate |
Definition at line 119 of file G4LegacyTransportTool.h.
|
private |
Definition at line 104 of file G4LegacyTransportTool.h.
|
private |
Definition at line 105 of file G4LegacyTransportTool.h.
|
private |
Definition at line 135 of file G4LegacyTransportTool.h.
|
protectedinherited |
The timing service for general usage.
Definition at line 115 of file BaseSimulatorTool.h.
|
private |
Detector Geometry Service (builds G4 Geometry)
Definition at line 145 of file G4LegacyTransportTool.h.
|
private |
Definition at line 102 of file G4LegacyTransportTool.h.
|
private |
Definition at line 109 of file G4LegacyTransportTool.h.
|
private |
Fast Simulation Master Tool.
Definition at line 153 of file G4LegacyTransportTool.h.
|
private |
Definition at line 127 of file G4LegacyTransportTool.h.
|
private |
Commands to send to the G4 UI.
Definition at line 132 of file G4LegacyTransportTool.h.
|
private |
Helper Tool to provide G4RunManager.
Definition at line 122 of file G4LegacyTransportTool.h.
|
private |
Service to convert ISF_Particles into a G4Event.
Definition at line 147 of file G4LegacyTransportTool.h.
|
private |
Definition at line 125 of file G4LegacyTransportTool.h.
|
private |
Definition at line 120 of file G4LegacyTransportTool.h.
|
private |
Definition at line 106 of file G4LegacyTransportTool.h.
|
private |
Definition at line 126 of file G4LegacyTransportTool.h.
|
private |
Physics List Service.
Definition at line 149 of file G4LegacyTransportTool.h.
|
private |
Definition at line 123 of file G4LegacyTransportTool.h.
|
private |
Definition at line 130 of file G4LegacyTransportTool.h.
|
private |
Random Stream Name.
Definition at line 139 of file G4LegacyTransportTool.h.
|
private |
Definition at line 129 of file G4LegacyTransportTool.h.
|
private |
Definition at line 128 of file G4LegacyTransportTool.h.
|
private |
Definition at line 137 of file G4LegacyTransportTool.h.
|
private |
Definition at line 108 of file G4LegacyTransportTool.h.
|
private |
Sensitive Detector Master Tool.
Definition at line 151 of file G4LegacyTransportTool.h.
|
private |
Activate multi-threading configuration.
Definition at line 134 of file G4LegacyTransportTool.h.
|
private |
user action service
Definition at line 143 of file G4LegacyTransportTool.h.
|
private |
Definition at line 141 of file G4LegacyTransportTool.h.