Manager which, based on a configuration file, manages user's actions + selection of the geometry and the physics list. More...
#include <SToGS_UserActionManager.hh>
Public Member Functions | |
virtual G4VUserDetectorConstruction * | GetDetectorConstruction () const |
Return the detector depending of the configuration file. More... | |
G4int | GetNbThread () const |
allows the user to specify the number of threads More... | |
virtual G4VUserPhysicsList * | GetPhysicsList () const |
Return the physics list depending of the configuration file. More... | |
virtual UserActionInitialization * | GetUserActionInitialization () |
Return the UserActionInitialisation. More... | |
UserActionManager (G4String configurationfile="") | |
virtual | ~UserActionManager () |
Protected Member Functions | |
SToGS::UserActionInitialization * | ProvideUserActionInitialization () |
depending of the configuration file, it returns the adapted UserActionInitialization More... | |
Protected Attributes | |
G4int | fNbThreads |
std::pair< G4String, G4String > | fWhichActionManager |
Real stuff the G4VUserActionInitialization should deal with. More... | |
std::pair< G4String, G4String > | fWhichGenerator |
In principle in Geant4.10, geometry and physics are golbal so they are not provided by G4VUserActionInitialization. More... | |
std::pair< G4String, G4String > | fWhichGeometry |
std::pair< G4String, G4String > | fWhichPhysics |
Manager which, based on a configuration file, manages user's actions + selection of the geometry and the physics list.
It extends it also by adding the physics list and the geometry. It can be used in geant4.9.6 and geant > 10.0
Definition at line 42 of file SToGS_UserActionManager.hh.
SToGS::UserActionManager::UserActionManager | ( | G4String | configurationfile = "" | ) |
Definition at line 36 of file SToGS_UserActionManager.cc.
|
inlinevirtual |
Definition at line 68 of file SToGS_UserActionManager.hh.
|
virtual |
Return the detector depending of the configuration file.
Definition at line 134 of file SToGS_UserActionManager.cc.
|
inline |
allows the user to specify the number of threads
Definition at line 72 of file SToGS_UserActionManager.hh.
|
virtual |
Return the physics list depending of the configuration file.
Definition at line 146 of file SToGS_UserActionManager.cc.
|
inlinevirtual |
Return the UserActionInitialisation.
Definition at line 81 of file SToGS_UserActionManager.hh.
|
protected |
depending of the configuration file, it returns the adapted UserActionInitialization
Definition at line 110 of file SToGS_UserActionManager.cc.
|
protected |
Definition at line 60 of file SToGS_UserActionManager.hh.
|
protected |
Real stuff the G4VUserActionInitialization should deal with.
Definition at line 57 of file SToGS_UserActionManager.hh.
|
protected |
In principle in Geant4.10, geometry and physics are golbal so they are not provided by G4VUserActionInitialization.
We are keeping however here some references in case the user would like to ask the manager to do the job for her/him
Definition at line 52 of file SToGS_UserActionManager.hh.
|
protected |
Definition at line 53 of file SToGS_UserActionManager.hh.
|
protected |
Definition at line 54 of file SToGS_UserActionManager.hh.