|
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 | physics_list_factory_ |
| Factory class for instantiating the physics list. | |
| bool | is_pw_enabled_ {false} |
| Flag indicating whether a parallel world should be registered. | |
| std::string | parallel_world_path_ {""} |
| Path to GDML description of parallel world. | |
| bool | use_root_seed_ {false} |
| Should we use random seed from root file? | |
Extension of Geant4 run manager.
Definition at line 42 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::get(), parameters_, and setUseRootSeed().
| DetectorConstruction * simcore::RunManager::getDetectorConstruction | ( | ) |
Get the user detector construction cast to a specific type.
Definition at line 198 of file RunManager.cxx.
Referenced by Initialize().
| void simcore::RunManager::Initialize | ( | ) |
Perform application initialization.
Definition at line 104 of file RunManager.cxx.
References framework::config::Parameters::get(), getDetectorConstruction(), is_pw_enabled_, parallel_world_path_, parameters_, and setupPhysics().
| void simcore::RunManager::setupPhysics | ( | ) |
Initialize physics.
Definition at line 48 of file RunManager.cxx.
References framework::config::Parameters::get(), is_pw_enabled_, parallel_world_path_, parameters_, and physics_list_factory_.
Referenced by Initialize().
|
inline |
Tell RunManager to use the seed from the root file.
Definition at line 82 of file RunManager.h.
References use_root_seed_.
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 177 of file RunManager.cxx.
|
inline |
Should we use the seed from the root file?
Definition at line 87 of file RunManager.h.
References use_root_seed_.
|
private |
Flag indicating whether a parallel world should be registered.
Definition at line 102 of file RunManager.h.
Referenced by Initialize(), and setupPhysics().
|
private |
Path to GDML description of parallel world.
Definition at line 105 of file RunManager.h.
Referenced by Initialize(), and setupPhysics().
|
private |
The set of parameters used to configure the RunManager.
Definition at line 91 of file RunManager.h.
Referenced by Initialize(), RunManager(), and setupPhysics().
|
private |
Factory class for instantiating the physics list.
Definition at line 96 of file RunManager.h.
Referenced by setupPhysics().
|
private |
Should we use random seed from root file?
Definition at line 110 of file RunManager.h.
Referenced by setUseRootSeed(), and useRootSeed().