Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4UserRunAction Class Reference

#include <G4UserRunAction.hh>

Public Member Functions

 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual G4RunGenerateRun ()
 
virtual void BeginOfRunAction (const G4Run *aRun)
 
virtual void EndOfRunAction (const G4Run *aRun)
 

Detailed Description

Definition at line 51 of file G4UserRunAction.hh.

Constructor & Destructor Documentation

◆ G4UserRunAction()

G4UserRunAction::G4UserRunAction ( )

Definition at line 35 of file G4UserRunAction.cc.

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

◆ ~G4UserRunAction()

G4UserRunAction::~G4UserRunAction ( )
virtual

Definition at line 51 of file G4UserRunAction.cc.

52{;}

Member Function Documentation

◆ BeginOfRunAction()

void G4UserRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Definition at line 57 of file G4UserRunAction.cc.

58{;}

Referenced by G4RunManager::RunInitialization().

◆ EndOfRunAction()

void G4UserRunAction::EndOfRunAction ( const G4Run aRun)
virtual

Definition at line 60 of file G4UserRunAction.cc.

61{;}

Referenced by G4RunManager::RunTermination().

◆ GenerateRun()

G4Run * G4UserRunAction::GenerateRun ( )
virtual

Definition at line 54 of file G4UserRunAction.cc.

55{ return 0; }

Referenced by G4RunManager::RunInitialization().


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