#include <G4UserEventAction.hh>
Public Member Functions | |
G4UserEventAction () | |
virtual | ~G4UserEventAction () |
void | SetEventManager (G4EventManager *value) |
virtual void | BeginOfEventAction (const G4Event *anEvent) |
virtual void | EndOfEventAction (const G4Event *anEvent) |
Protected Attributes | |
G4EventManager * | fpEventManager |
Definition at line 51 of file G4UserEventAction.hh.
G4UserEventAction::G4UserEventAction | ( | ) |
Definition at line 36 of file G4UserEventAction.cc.
References FatalException, G4Exception(), and G4ParticleTable::GetParticleTable().
00037 { 00038 if(!(G4ParticleTable::GetParticleTable()->GetReadiness())) 00039 { 00040 G4String msg; 00041 msg = " You are instantiating G4UserEventAction BEFORE your\n"; 00042 msg += "G4VUserPhysicsList is instantiated and assigned to G4RunManager.\n"; 00043 msg += " Such an instantiation is prohibited by Geant4 version 8.0. To fix this problem,\n"; 00044 msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n"; 00045 msg += "set it to G4RunManager before instantiating other user action classes\n"; 00046 msg += "such as G4UserEventAction."; 00047 G4Exception("G4UserEventAction::G4UserEventAction()", 00048 "Event0032",FatalException,msg); 00049 } 00050 }
G4UserEventAction::~G4UserEventAction | ( | ) | [virtual] |
void G4UserEventAction::BeginOfEventAction | ( | const G4Event * | anEvent | ) | [virtual] |
void G4UserEventAction::EndOfEventAction | ( | const G4Event * | anEvent | ) | [virtual] |
void G4UserEventAction::SetEventManager | ( | G4EventManager * | value | ) | [inline] |
Definition at line 56 of file G4UserEventAction.hh.
References fpEventManager.
Referenced by G4EventManager::SetUserAction().
00057 { fpEventManager = value; }
G4EventManager* G4UserEventAction::fpEventManager [protected] |