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

#include <F01EventAction.hh>

Inheritance diagram for F01EventAction:
Collaboration diagram for F01EventAction:

Public Member Functions

 F01EventAction (F01RunAction *F01RA)
 
virtual ~F01EventAction ()
 
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 F01EventAction.hh.

Constructor & Destructor Documentation

F01EventAction::F01EventAction ( F01RunAction F01RA)

Definition at line 45 of file F01EventAction.cc.

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

Definition at line 52 of file F01EventAction.cc.

53 {}

Member Function Documentation

void F01EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

Definition at line 57 of file F01EventAction.cc.

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

Reimplemented from G4UserEventAction.

Definition at line 62 of file F01EventAction.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()
int G4int
Definition: G4Types.hh:78
G4int GetEventID() const
Definition: G4Event.hh:151
G4GLOB_DLL std::ostream G4cout
G4int GetRndmFreq() const
Definition: F01RunAction.hh:57
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: