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

#include <G4UserRunAction.hh>

Inheritance diagram for G4UserRunAction:

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, G4MultiRunAction, and G4RTRunAction.

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, G4MultiRunAction, and G4RTRunAction.

Definition at line 61 of file G4UserRunAction.cc.

62 {;}

Here is the caller graph for this function:

G4Run * G4UserRunAction::GenerateRun ( )
virtual

Reimplemented in G4MultiRunAction, and G4RTRunAction.

Definition at line 55 of file G4UserRunAction.cc.

56 { return 0; }

Here is the caller graph for this function:

G4bool G4UserRunAction::IsMaster ( ) const
inline

Definition at line 69 of file G4UserRunAction.hh.

70  { return isMaster; }
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: