Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
F02EventAction Class Reference

#include <F02EventAction.hh>

Inheritance diagram for F02EventAction:
Collaboration diagram for F02EventAction:

Public Member Functions

 F02EventAction (F02RunAction *F02RA)
 
virtual ~F02EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
- Public Member Functions inherited from G4UserEventAction
 G4UserEventAction ()
 
virtual ~G4UserEventAction ()
 
virtual void SetEventManager (G4EventManager *value)
 

Additional Inherited Members

- Protected Attributes inherited from G4UserEventAction
G4EventManagerfpEventManager
 

Detailed Description

Definition at line 46 of file F02EventAction.hh.

Constructor & Destructor Documentation

F02EventAction::F02EventAction ( F02RunAction F02RA)

Definition at line 45 of file F02EventAction.cc.

47  fRunAction(action)
48 {}
F02EventAction::~F02EventAction ( )
virtual

Definition at line 52 of file F02EventAction.cc.

53 {}

Member Function Documentation

void F02EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

Definition at line 57 of file F02EventAction.cc.

58 {}
void F02EventAction::EndOfEventAction ( const G4Event evt)
virtual

Reimplemented from G4UserEventAction.

Definition at line 62 of file F02EventAction.cc.

63 {
64  // save rndm status
65  if (fRunAction->GetRndmFreq() == 2)
66  {
67  G4Random::saveEngineStatus("endOfEvent.rndm");
68 
69  G4int evtNb = evt->GetEventID();
71  if (evtNb%printProgress == 0)
72  {
73  G4cout << "\n---> End of Event: " << evtNb << G4endl;
74  G4Random::showEngineStatus();
75  }
76  }
77 }
G4int GetPrintProgress()
G4int GetRndmFreq() const
Definition: F02RunAction.hh:57
int G4int
Definition: G4Types.hh:78
G4int GetEventID() const
Definition: G4Event.hh:151
G4GLOB_DLL std::ostream G4cout
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:


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