SToGS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SToGS::AllInOneUserActionInitialization< _T > Class Template Reference

a G4 user's action manage by a single AllAction class More...

#include <SToGS_UserActionInitialization.hh>

Inheritance diagram for SToGS::AllInOneUserActionInitialization< _T >:

Public Member Functions

 AllInOneUserActionInitialization (G4String which_user_action_opt, G4String which_gene, G4String which_gene_opt)
 
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 ~AllInOneUserActionInitialization ()
 

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

template<typename _T>
class SToGS::AllInOneUserActionInitialization< _T >

a G4 user's action manage by a single AllAction class

Definition at line 281 of file SToGS_UserActionInitialization.hh.

Constructor & Destructor Documentation

template<typename _T>
SToGS::AllInOneUserActionInitialization< _T >::AllInOneUserActionInitialization ( G4String  which_user_action_opt,
G4String  which_gene,
G4String  which_gene_opt 
)
inline

Definition at line 284 of file SToGS_UserActionInitialization.hh.

template<typename _T>
virtual SToGS::AllInOneUserActionInitialization< _T >::~AllInOneUserActionInitialization ( )
inlinevirtual

Definition at line 289 of file SToGS_UserActionInitialization.hh.

Member Function Documentation

template<typename _T>
virtual void SToGS::AllInOneUserActionInitialization< _T >::Build ( ) const
inlinevirtual

Implements SToGS::UserActionInitialization.

Reimplemented in SToGS::PrintOut.

Definition at line 321 of file SToGS_UserActionInitialization.hh.

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.

template<typename _T>
virtual G4UserEventAction* SToGS::AllInOneUserActionInitialization< _T >::GetEventAction ( ) const
inlinevirtual

Implements SToGS::UserActionInitialization.

Reimplemented in SToGS::PrintOut.

Definition at line 300 of file SToGS_UserActionInitialization.hh.

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.

template<typename _T>
virtual G4UserRunAction* SToGS::AllInOneUserActionInitialization< _T >::GetRunAction ( ) const
inlinevirtual

depending on one string, select a given gun

Implements SToGS::UserActionInitialization.

Reimplemented in SToGS::PrintOut.

Definition at line 293 of file SToGS_UserActionInitialization.hh.

template<typename _T>
virtual G4UserSteppingAction* SToGS::AllInOneUserActionInitialization< _T >::GetSteppingAction ( ) const
inlinevirtual

Implements SToGS::UserActionInitialization.

Reimplemented in SToGS::PrintOut.

Definition at line 314 of file SToGS_UserActionInitialization.hh.

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.

template<typename _T>
virtual G4UserTrackingAction* SToGS::AllInOneUserActionInitialization< _T >::GetTrackingAction ( ) const
inlinevirtual

Implements SToGS::UserActionInitialization.

Reimplemented in SToGS::PrintOut.

Definition at line 307 of file SToGS_UserActionInitialization.hh.

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: