The BaseROOTEvents is use to init G4 kernel with the actions defined in BaseROOTEventsUserAction. More...
#include <SToGS_BaseROOTEventsActions.hh>
Public Member Functions | |
BaseROOTEvents (G4String conf="setup/SToGS_tree_actions.conf", G4String which_gene="GPS", G4String which_gene_opt="G4Macros/GPSPointLike.mac") | |
virtual void | Build () const |
virtual void | BuildForMaster () const |
provide default ... likely to be changed since RunManager may be different from Slave and Master More... | |
virtual G4UserEventAction * | GetEventAction () const |
virtual G4VUserPrimaryGeneratorAction * | GetGun () const |
depending on one string, select a given gun More... | |
virtual G4UserRunAction * | GetRunAction () const |
depending on one string, select a given gun More... | |
virtual G4UserSteppingAction * | GetSteppingAction () const |
virtual G4UserTrackingAction * | GetTrackingAction () const |
std::pair< G4String, G4String > | SetWhichGenerator (G4String which_gene, G4String option) |
once allocated the generator associated with a UserActionInititialization could be changed here before asking for one More... | |
virtual | ~BaseROOTEvents () |
Static Public Member Functions | |
static G4VSensitiveDetector * | GetCopClusterSD (G4String name="/SToGS/SD/CopCluster") |
to get a general SToGS Calorimeter. In Multi-threading mode, return a new instance otherwise a global one More... | |
static G4VSensitiveDetector * | GetTrackerSD (G4String name="/SToGS/SD/Tracker") |
to get a general SToGS tracker. In Multi-threading mode, return a new instance otherwise a global one More... | |
Protected Member Functions | |
void | BuildAndRegister (AllActions *) const |
add the passed class to the list of allocated ones. It is required for a proper destruction More... | |
virtual G4VUserPrimaryGeneratorAction * | GetGun (G4String which, G4String opt) const |
Find and get a gun in many possibilities. More... | |
void | Register (AllActions *) const |
Protected Attributes | |
std::vector< AllActions * > | fAllUserAction |
list of allocated AllActions to delete them More... | |
G4String | fUserActionOption |
action passed to the created user's actions if required More... | |
std::pair< G4String, G4String > | fWhichGenerator |
to keep what generator to be used. Defaut is "-","-", means the concrete implementation provides its own generator More... | |
The BaseROOTEvents is use to init G4 kernel with the actions defined in BaseROOTEventsUserAction.
Definition at line 89 of file SToGS_BaseROOTEventsActions.hh.
|
inline |
Definition at line 92 of file SToGS_BaseROOTEventsActions.hh.
|
inlinevirtual |
Definition at line 96 of file SToGS_BaseROOTEventsActions.hh.
|
inlinevirtualinherited |
Implements SToGS::UserActionInitialization.
Definition at line 321 of file SToGS_UserActionInitialization.hh.
|
protectedinherited |
add the passed class to the list of allocated ones. It is required for a proper destruction
This call is thread locked
Definition at line 194 of file SToGS_UserActionInitialization.cc.
|
inlinevirtualinherited |
provide default ... likely to be changed since RunManager may be different from Slave and Master
Definition at line 266 of file SToGS_UserActionInitialization.hh.
|
staticinherited |
to get a general SToGS Calorimeter. In Multi-threading mode, return a new instance otherwise a global one
Definition at line 169 of file SToGS_UserActionInitialization.cc.
|
inlinevirtualinherited |
Implements SToGS::UserActionInitialization.
Definition at line 300 of file SToGS_UserActionInitialization.hh.
|
protectedvirtualinherited |
Find and get a gun in many possibilities.
Definition at line 123 of file SToGS_UserActionInitialization.cc.
|
virtualinherited |
depending on one string, select a given gun
Ex GPS: the gun is realized through the general GPS interface
Definition at line 136 of file SToGS_UserActionInitialization.cc.
|
inlinevirtualinherited |
depending on one string, select a given gun
Implements SToGS::UserActionInitialization.
Definition at line 293 of file SToGS_UserActionInitialization.hh.
|
inlinevirtualinherited |
Implements SToGS::UserActionInitialization.
Definition at line 314 of file SToGS_UserActionInitialization.hh.
|
staticinherited |
to get a general SToGS tracker. In Multi-threading mode, return a new instance otherwise a global one
Definition at line 144 of file SToGS_UserActionInitialization.cc.
|
inlinevirtualinherited |
Implements SToGS::UserActionInitialization.
Definition at line 307 of file SToGS_UserActionInitialization.hh.
|
protectedinherited |
Definition at line 215 of file SToGS_UserActionInitialization.cc.
|
inherited |
once allocated the generator associated with a UserActionInititialization could be changed here before asking for one
Definition at line 99 of file SToGS_UserActionInitialization.cc.
|
mutableprotectedinherited |
list of allocated AllActions to delete them
Definition at line 215 of file SToGS_UserActionInitialization.hh.
|
protectedinherited |
action passed to the created user's actions if required
Definition at line 219 of file SToGS_UserActionInitialization.hh.
|
protectedinherited |
to keep what generator to be used. Defaut is "-","-", means the concrete implementation provides its own generator
Definition at line 223 of file SToGS_UserActionInitialization.hh.