SToGS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SToGS::UserActionManager Class Reference

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 UserActionInitializationGetUserActionInitialization ()
 Return the UserActionInitialisation. More...
 
 UserActionManager (G4String configurationfile="")
 
virtual ~UserActionManager ()
 

Protected Member Functions

SToGS::UserActionInitializationProvideUserActionInitialization ()
 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
 

Detailed Description

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.

Constructor & Destructor Documentation

SToGS::UserActionManager::UserActionManager ( G4String  configurationfile = "")

Definition at line 36 of file SToGS_UserActionManager.cc.

virtual SToGS::UserActionManager::~UserActionManager ( )
inlinevirtual

Definition at line 68 of file SToGS_UserActionManager.hh.

Member Function Documentation

G4VUserDetectorConstruction * SToGS::UserActionManager::GetDetectorConstruction ( ) const
virtual

Return the detector depending of the configuration file.

Definition at line 134 of file SToGS_UserActionManager.cc.

G4int SToGS::UserActionManager::GetNbThread ( ) const
inline

allows the user to specify the number of threads

Definition at line 72 of file SToGS_UserActionManager.hh.

G4VUserPhysicsList * SToGS::UserActionManager::GetPhysicsList ( ) const
virtual

Return the physics list depending of the configuration file.

Definition at line 146 of file SToGS_UserActionManager.cc.

virtual UserActionInitialization* SToGS::UserActionManager::GetUserActionInitialization ( )
inlinevirtual

Return the UserActionInitialisation.

Definition at line 81 of file SToGS_UserActionManager.hh.

SToGS::UserActionInitialization * SToGS::UserActionManager::ProvideUserActionInitialization ( )
protected

depending of the configuration file, it returns the adapted UserActionInitialization

Definition at line 110 of file SToGS_UserActionManager.cc.

Member Data Documentation

G4int SToGS::UserActionManager::fNbThreads
protected

Definition at line 60 of file SToGS_UserActionManager.hh.

std::pair< G4String, G4String > SToGS::UserActionManager::fWhichActionManager
protected

Real stuff the G4VUserActionInitialization should deal with.

Definition at line 57 of file SToGS_UserActionManager.hh.

std::pair< G4String, G4String > SToGS::UserActionManager::fWhichGenerator
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.

std::pair< G4String, G4String > SToGS::UserActionManager::fWhichGeometry
protected

Definition at line 53 of file SToGS_UserActionManager.hh.

std::pair< G4String, G4String > SToGS::UserActionManager::fWhichPhysics
protected

Definition at line 54 of file SToGS_UserActionManager.hh.


The documentation for this class was generated from the following files: