Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4UserRunAction Class Reference

#include <G4UserRunAction.hh>

Inherited by B01RunAction, B02RunAction, B03RunAction, B1ConRunAction, B1RunAction, B1RunAction, B2RunAction, B2RunAction, B2RunAction, B3aRunAction, B3bRunAction, B4bRunAction, B4RunAction, B4RunAction, B4RunAction, B5RunAction, BrachyRunAction, CB_G4UserRunAction, CCalRunAction, CexmcRunAction, CML2RunAction, demo.MyRunAction, DicomRunAction, DMXRunAction, ElectronRunAction, eRositaRunAction, ExExChRunAction, ExG4RunAction01, ExG4RunAction01, ExG4RunAction01, ExGflashRunAction, ExN02RunAction, ExN04RunAction, ExN04RunAction, ExP01RunAction, ExTGRunAction, ExUCNRunAction, F01RunAction, F02RunAction, F03RunAction, F04RunAction, FCALRunAction, FFRunAction, G02RunAction, G03RunAction, G4AdjointSimManager, G4BlineTracer, G4HumanPhantomRunAction, G4MultiRunAction, G4RTRunAction, GammaKnifeRunAction, GammaRayTelRunAction, HadrontherapyRunAction, IORTRunAction, LXeRunAction, OpNoviceRunAction, Par02RunAction, PurgMagRunAction, RE01RunAction, RE02RunAction, RE05RunAction, RE06RunAction, RMC01RunAction, root_test.MyRunAction, run.MyRunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunActionMaster, test.MyRunAction, test.MyRunAction, test.MyRunAction, TSRunAction, UltraRunAction, WLSRunAction, XrayFluoRunAction, and XrayTelRunAction.

Public Member Functions

 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual G4RunGenerateRun ()
 
virtual void BeginOfRunAction (const G4Run *aRun)
 
virtual void EndOfRunAction (const G4Run *aRun)
 
virtual void SetMaster (G4bool val=true)
 
G4bool IsMaster () const
 

Protected Attributes

G4bool isMaster
 

Detailed Description

Definition at line 52 of file G4UserRunAction.hh.

Constructor & Destructor Documentation

G4UserRunAction::G4UserRunAction ( )

Definition at line 35 of file G4UserRunAction.cc.

36 :isMaster(true)
37 {
38  if(!(G4ParticleTable::GetParticleTable()->GetReadiness()))
39  {
40  G4String msg;
41  msg = " You are instantiating G4UserRunAction BEFORE your G4VUserPhysicsList is\n";
42  msg += "instantiated and assigned to G4RunManager.\n";
43  msg += " Such an instantiation is prohibited by Geant4 version 8.0. To fix this problem,\n";
44  msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n";
45  msg += "set it to G4RunManager before instantiating other user action classes\n";
46  msg += "such as G4UserRunAction.";
47  G4Exception("G4UserRunAction::G4UserRunAction()",
48  "Run0041",FatalException,msg);
49  }
50 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
static G4ParticleTable * GetParticleTable()

Here is the call graph for this function:

G4UserRunAction::~G4UserRunAction ( )
virtual

Definition at line 52 of file G4UserRunAction.cc.

53 {;}

Member Function Documentation

void G4UserRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented in G4AdjointSimManager, RE02RunAction, RunAction, G4BlineTracer, XrayTelRunAction, G4MultiRunAction, XrayFluoRunAction, RMC01RunAction, B4bRunAction, RunAction, RunAction, TSRunAction, B4RunAction, B4RunAction, B4RunAction, RunAction, RunAction, DMXRunAction, RunAction, IORTRunAction, RunAction, B01RunAction, B02RunAction, B03RunAction, RunAction, RunAction, RunAction, RunAction, Par02RunAction, G02RunAction, UltraRunAction, RunAction, GammaRayTelRunAction, RunAction, RunAction, RunAction, RunAction, RunAction, CML2RunAction, ExG4RunAction01, RunAction, RunAction, RunAction, RunAction, ExG4RunAction01, ExG4RunAction01, RunAction, RunAction, RunAction, RunAction, G03RunAction, RunAction, PurgMagRunAction, RunAction, RunAction, RunAction, RunAction, BrachyRunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, WLSRunAction, RunAction, RunAction, RunAction, RunAction, B1ConRunAction, RunAction, RunAction, FFRunAction, RunAction, DicomRunAction, RunAction, RunAction, RunAction, RunAction, ExP01RunAction, GammaKnifeRunAction, B1RunAction, F01RunAction, F02RunAction, F03RunAction, RunAction, B1RunAction, RunAction, RunAction, RunAction, OpNoviceRunAction, ExN02RunAction, ExN04RunAction, FCALRunAction, ExUCNRunAction, F04RunAction, RunAction, RE05RunAction, G4RTRunAction, RunAction, RunAction, RunAction, RunAction, HadrontherapyRunAction, RunAction, RunAction, B2RunAction, B2RunAction, B5RunAction, B2RunAction, eRositaRunAction, B3bRunAction, ExTGRunAction, RE01RunAction, RE06RunAction, ExN04RunAction, B3aRunAction, LXeRunAction, G4HumanPhantomRunAction, ExGflashRunAction, ExExChRunAction, CB_G4UserRunAction, CCalRunAction, RunAction, RunActionMaster, and RunAction.

Definition at line 58 of file G4UserRunAction.cc.

59 {;}

Here is the caller graph for this function:

void G4UserRunAction::EndOfRunAction ( const G4Run aRun)
virtual

Reimplemented in G4AdjointSimManager, RE02RunAction, RunAction, G4BlineTracer, XrayTelRunAction, G4MultiRunAction, XrayFluoRunAction, RMC01RunAction, RunAction, RunAction, B4bRunAction, RunAction, RunAction, TSRunAction, B4RunAction, B4RunAction, B4RunAction, Par02RunAction, CexmcRunAction, DMXRunAction, RunAction, RunAction, IORTRunAction, RunAction, B01RunAction, B02RunAction, B03RunAction, RunAction, RunAction, RunAction, G02RunAction, UltraRunAction, RunAction, GammaRayTelRunAction, RunAction, RunAction, RunAction, RunAction, RunAction, CML2RunAction, ExG4RunAction01, RunAction, RunAction, RunAction, RunAction, ExG4RunAction01, ExG4RunAction01, RunAction, RunAction, RunAction, RunAction, RunAction, G03RunAction, RunAction, PurgMagRunAction, RunAction, RunAction, RunAction, RunAction, BrachyRunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, RunAction, WLSRunAction, RunAction, RunAction, RunAction, RunAction, B1ConRunAction, RunAction, RunAction, FFRunAction, RunAction, DicomRunAction, RunAction, RunAction, RunAction, RunAction, ExP01RunAction, GammaKnifeRunAction, B1RunAction, F01RunAction, F02RunAction, F03RunAction, RunAction, B1RunAction, RunAction, FCALRunAction, RunAction, RunAction, RunAction, OpNoviceRunAction, ExN02RunAction, ExUCNRunAction, F04RunAction, RunAction, G4RTRunAction, CB_G4UserRunAction, RunAction, RunAction, RunAction, HadrontherapyRunAction, RunAction, RunAction, B2RunAction, B2RunAction, B5RunAction, B2RunAction, eRositaRunAction, B3bRunAction, ElectronRunAction, ExTGRunAction, RE01RunAction, RE06RunAction, B3aRunAction, LXeRunAction, G4HumanPhantomRunAction, ExGflashRunAction, ExExChRunAction, CCalRunAction, RunAction, RunActionMaster, and RunAction.

Definition at line 61 of file G4UserRunAction.cc.

62 {;}

Here is the caller graph for this function:

G4bool G4UserRunAction::IsMaster ( ) const
inline

Definition at line 69 of file G4UserRunAction.hh.

70  { return isMaster; }

Here is the caller graph for this function:

virtual void G4UserRunAction::SetMaster ( G4bool  val = true)
inlinevirtual

Reimplemented in G4MultiRunAction.

Definition at line 67 of file G4UserRunAction.hh.

68  { isMaster = val; }

Here is the caller graph for this function:

Member Data Documentation

G4bool G4UserRunAction::isMaster
protected

Definition at line 64 of file G4UserRunAction.hh.


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