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

#include <G4UserEventAction.hh>

Inheritance diagram for G4UserEventAction:
Collaboration diagram for G4UserEventAction:

Public Member Functions

 G4UserEventAction ()
 
virtual ~G4UserEventAction ()
 
virtual 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.

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 }
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:

G4UserEventAction::~G4UserEventAction ( )
virtual

Definition at line 52 of file G4UserEventAction.cc.

53 {;}

Member Function Documentation

void G4UserEventAction::BeginOfEventAction ( const G4Event anEvent)
virtual

Reimplemented in G4MultiEventAction.

Definition at line 55 of file G4UserEventAction.cc.

56 {;}
void G4UserEventAction::EndOfEventAction ( const G4Event anEvent)
virtual

Reimplemented in G4MultiEventAction.

Definition at line 58 of file G4UserEventAction.cc.

59 {;}
virtual void G4UserEventAction::SetEventManager ( G4EventManager value)
inlinevirtual

Reimplemented in G4MultiEventAction.

Definition at line 56 of file G4UserEventAction.hh.

57  { fpEventManager = value; }
G4EventManager * fpEventManager
const XML_Char int const XML_Char * value
Definition: expat.h:331

Here is the caller graph for this function:

Member Data Documentation

G4EventManager* G4UserEventAction::fpEventManager
protected

Definition at line 63 of file G4UserEventAction.hh.


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