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

The BaseROOTEvents is use to init G4 kernel with the actions defined in BaseROOTEventsUserAction. More...

#include <SToGS_BaseROOTEventsActions.hh>

Inheritance diagram for SToGS::BaseROOTEvents:

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...
 

Detailed Description

The BaseROOTEvents is use to init G4 kernel with the actions defined in BaseROOTEventsUserAction.

Definition at line 89 of file SToGS_BaseROOTEventsActions.hh.

Constructor & Destructor Documentation

SToGS::BaseROOTEvents::BaseROOTEvents ( G4String  conf = "setup/SToGS_tree_actions.conf",
G4String  which_gene = "GPS",
G4String  which_gene_opt = "G4Macros/GPSPointLike.mac" 
)
inline

Definition at line 92 of file SToGS_BaseROOTEventsActions.hh.

virtual SToGS::BaseROOTEvents::~BaseROOTEvents ( )
inlinevirtual

Definition at line 96 of file SToGS_BaseROOTEventsActions.hh.

Member Function Documentation

virtual void SToGS::AllInOneUserActionInitialization< BaseROOTEventsUserAction >::Build ( ) const
inlinevirtualinherited
void SToGS::UserActionInitialization::BuildAndRegister ( AllActions actions) const
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.

virtual void SToGS::UserActionInitialization::BuildForMaster ( ) const
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.

G4VSensitiveDetector * SToGS::UserActionInitialization::GetCopClusterSD ( G4String  name = "/SToGS/SD/CopCluster")
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.

virtual G4UserEventAction* SToGS::AllInOneUserActionInitialization< BaseROOTEventsUserAction >::GetEventAction ( ) const
inlinevirtualinherited
G4VUserPrimaryGeneratorAction * SToGS::UserActionInitialization::GetGun ( G4String  which,
G4String  opt 
) const
protectedvirtualinherited

Find and get a gun in many possibilities.

Definition at line 123 of file SToGS_UserActionInitialization.cc.

G4VUserPrimaryGeneratorAction * SToGS::UserActionInitialization::GetGun ( ) const
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.

virtual G4UserRunAction* SToGS::AllInOneUserActionInitialization< BaseROOTEventsUserAction >::GetRunAction ( ) const
inlinevirtualinherited

depending on one string, select a given gun

Implements SToGS::UserActionInitialization.

Definition at line 293 of file SToGS_UserActionInitialization.hh.

virtual G4UserSteppingAction* SToGS::AllInOneUserActionInitialization< BaseROOTEventsUserAction >::GetSteppingAction ( ) const
inlinevirtualinherited
G4VSensitiveDetector * SToGS::UserActionInitialization::GetTrackerSD ( G4String  name = "/SToGS/SD/Tracker")
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.

virtual G4UserTrackingAction* SToGS::AllInOneUserActionInitialization< BaseROOTEventsUserAction >::GetTrackingAction ( ) const
inlinevirtualinherited
void SToGS::UserActionInitialization::Register ( AllActions actions) const
protectedinherited

Definition at line 215 of file SToGS_UserActionInitialization.cc.

std::pair< G4String, G4String > SToGS::UserActionInitialization::SetWhichGenerator ( G4String  which_gene,
G4String  option 
)
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.

Member Data Documentation

std::vector< AllActions *> SToGS::UserActionInitialization::fAllUserAction
mutableprotectedinherited

list of allocated AllActions to delete them

Definition at line 215 of file SToGS_UserActionInitialization.hh.

G4String SToGS::UserActionInitialization::fUserActionOption
protectedinherited

action passed to the created user's actions if required

Definition at line 219 of file SToGS_UserActionInitialization.hh.

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


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