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 (  ) 

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]

Definition at line 52 of file G4UserEventAction.cc.

00053 {;}


Member Function Documentation

void G4UserEventAction::BeginOfEventAction ( const G4Event anEvent  )  [virtual]

Definition at line 55 of file G4UserEventAction.cc.

00056 {;}

void G4UserEventAction::EndOfEventAction ( const G4Event anEvent  )  [virtual]

Definition at line 58 of file G4UserEventAction.cc.

00059 {;}

void G4UserEventAction::SetEventManager ( G4EventManager value  )  [inline]

Definition at line 56 of file G4UserEventAction.hh.

References fpEventManager.

Referenced by G4EventManager::SetUserAction().

00057       { fpEventManager = value; }


Field Documentation

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:
Generated on Mon May 27 17:53:38 2013 for Geant4 by  doxygen 1.4.7