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

This is the ActionInitialization class to handle PrintOut at different levels (run, events ...) from a unique AllAction event Class. More...

#include <SToGS_PrintOut.hh>

Inheritance diagram for SToGS::PrintOut:

Public Member Functions

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
 
 PrintOut (G4String option="run;event;track;step", G4String which_gene="GPS", G4String which_gene_opt="G4Macros/GPSPointLike.mac")
 
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 ~PrintOut ()
 

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

This is the ActionInitialization class to handle PrintOut at different levels (run, events ...) from a unique AllAction event Class.

Definition at line 76 of file SToGS_PrintOut.hh.

Constructor & Destructor Documentation

SToGS::PrintOut::PrintOut ( G4String  option = "run;event;track;step",
G4String  which_gene = "GPS",
G4String  which_gene_opt = "G4Macros/GPSPointLike.mac" 
)
inline

Definition at line 79 of file SToGS_PrintOut.hh.

virtual SToGS::PrintOut::~PrintOut ( )
inlinevirtual

Definition at line 82 of file SToGS_PrintOut.hh.

Member Function Documentation

void SToGS::PrintOut::Build ( ) const
virtual

Reimplemented from SToGS::AllInOneUserActionInitialization< PrintOutAction >.

Definition at line 216 of file SToGS_PrintOut.cc.

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.

G4UserEventAction * SToGS::PrintOut::GetEventAction ( ) const
virtual

Reimplemented from SToGS::AllInOneUserActionInitialization< PrintOutAction >.

Definition at line 197 of file SToGS_PrintOut.cc.

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.

G4UserRunAction * SToGS::PrintOut::GetRunAction ( ) const
virtual

depending on one string, select a given gun

Reimplemented from SToGS::AllInOneUserActionInitialization< PrintOutAction >.

Definition at line 191 of file SToGS_PrintOut.cc.

G4UserSteppingAction * SToGS::PrintOut::GetSteppingAction ( ) const
virtual

Reimplemented from SToGS::AllInOneUserActionInitialization< PrintOutAction >.

Definition at line 209 of file SToGS_PrintOut.cc.

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.

G4UserTrackingAction * SToGS::PrintOut::GetTrackingAction ( ) const
virtual

Reimplemented from SToGS::AllInOneUserActionInitialization< PrintOutAction >.

Definition at line 203 of file SToGS_PrintOut.cc.

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 files: