LDMX Software
|
Extension of Geant4 run manager. More...
#include <RunManager.h>
Public Member Functions | |
RunManager (framework::config::Parameters ¶meters, ConditionsInterface &) | |
Class constructor. | |
virtual | ~RunManager ()=default |
Class destructor. | |
void | setupPhysics () |
Initialize physics. | |
void | Initialize () |
Perform application initialization. | |
void | TerminateOneEvent () |
Called at the end of each event. | |
DetectorConstruction * | getDetectorConstruction () |
Get the user detector construction cast to a specific type. | |
void | setUseRootSeed (bool useIt=true) |
Tell RunManager to use the seed from the root file. | |
bool | useRootSeed () |
Should we use the seed from the root file? | |
Private Attributes | |
framework::config::Parameters | parameters_ |
The set of parameters used to configure the RunManager. | |
G4PhysListFactory | physicsListFactory_ |
Factory class for instantiating the physics list. | |
bool | isPWEnabled_ {false} |
Flag indicating whether a parallel world should be registered. | |
std::string | parallelWorldPath_ {""} |
Path to GDML description of parallel world. | |
bool | useRootSeed_ {false} |
Should we use random seed from root file? | |
Extension of Geant4 run manager.
Definition at line 41 of file RunManager.h.
simcore::RunManager::RunManager | ( | framework::config::Parameters & | parameters, |
ConditionsInterface & | |||
) |
Class constructor.
Definition at line 37 of file RunManager.cxx.
References framework::config::Parameters::getParameter(), parameters_, and setUseRootSeed().
DetectorConstruction * simcore::RunManager::getDetectorConstruction | ( | ) |
Get the user detector construction cast to a specific type.
Definition at line 191 of file RunManager.cxx.
Referenced by Initialize().
void simcore::RunManager::Initialize | ( | ) |
Perform application initialization.
Definition at line 102 of file RunManager.cxx.
References simcore::Factory< Prototype, PrototypePtr, PrototypeConstructorArgs >::get(), getDetectorConstruction(), framework::config::Parameters::getParameter(), isPWEnabled_, simcore::Factory< Prototype, PrototypePtr, PrototypeConstructorArgs >::make(), parallelWorldPath_, parameters_, and setupPhysics().
void simcore::RunManager::setupPhysics | ( | ) |
Initialize physics.
Definition at line 49 of file RunManager.cxx.
References simcore::Factory< Prototype, PrototypePtr, PrototypeConstructorArgs >::apply(), simcore::Factory< Prototype, PrototypePtr, PrototypeConstructorArgs >::get(), framework::config::Parameters::getParameter(), isPWEnabled_, simcore::Factory< Prototype, PrototypePtr, PrototypeConstructorArgs >::make(), parallelWorldPath_, parameters_, and physicsListFactory_.
Referenced by Initialize().
|
inline |
Tell RunManager to use the seed from the root file.
Definition at line 81 of file RunManager.h.
References useRootSeed_.
Referenced by RunManager().
void simcore::RunManager::TerminateOneEvent | ( | ) |
Called at the end of each event.
Runs parent process G4RunManager::TerminateOneEvent() and resets the activation for the G4DarkBremsstrahlung process (if dark brem is possible)
Definition at line 165 of file RunManager.cxx.
|
inline |
Should we use the seed from the root file?
Definition at line 86 of file RunManager.h.
References useRootSeed_.
|
private |
Flag indicating whether a parallel world should be registered.
Definition at line 101 of file RunManager.h.
Referenced by Initialize(), and setupPhysics().
|
private |
Path to GDML description of parallel world.
Definition at line 104 of file RunManager.h.
Referenced by Initialize(), and setupPhysics().
|
private |
The set of parameters used to configure the RunManager.
Definition at line 90 of file RunManager.h.
Referenced by Initialize(), RunManager(), and setupPhysics().
|
private |
Factory class for instantiating the physics list.
Definition at line 95 of file RunManager.h.
Referenced by setupPhysics().
|
private |
Should we use random seed from root file?
Definition at line 109 of file RunManager.h.
Referenced by setUseRootSeed(), and useRootSeed().