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

#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

G4EventManagerfpEventManager
 

Detailed Description

Definition at line 51 of file G4UserEventAction.hh.

Constructor & Destructor Documentation

◆ G4UserEventAction()

G4UserEventAction::G4UserEventAction ( )

Definition at line 36 of file G4UserEventAction.cc.

37{
38 if(!(G4ParticleTable::GetParticleTable()->GetReadiness()))
39 {
40 G4String msg;
41 msg = " You are instantiating G4UserEventAction BEFORE your\n";
42 msg += "G4VUserPhysicsList is 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 G4UserEventAction.";
47 G4Exception("G4UserEventAction::G4UserEventAction()",
48 "Event0032",FatalException,msg);
49 }
50}
@ FatalException
static G4ParticleTable * GetParticleTable()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41

◆ ~G4UserEventAction()

G4UserEventAction::~G4UserEventAction ( )
virtual

Definition at line 52 of file G4UserEventAction.cc.

53{;}

Member Function Documentation

◆ BeginOfEventAction()

void G4UserEventAction::BeginOfEventAction ( const G4Event anEvent)
virtual

Definition at line 55 of file G4UserEventAction.cc.

56{;}

◆ EndOfEventAction()

void G4UserEventAction::EndOfEventAction ( const G4Event anEvent)
virtual

Definition at line 58 of file G4UserEventAction.cc.

59{;}

◆ SetEventManager()

void G4UserEventAction::SetEventManager ( G4EventManager value)
inline

Definition at line 56 of file G4UserEventAction.hh.

57 { fpEventManager = value; }
G4EventManager * fpEventManager

Referenced by G4EventManager::SetUserAction().

Member Data Documentation

◆ fpEventManager

G4EventManager* G4UserEventAction::fpEventManager
protected

Definition at line 63 of file G4UserEventAction.hh.

Referenced by SetEventManager().


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