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

#include <F04EventAction.hh>

Inheritance diagram for F04EventAction:
Collaboration diagram for F04EventAction:

Public Member Functions

 F04EventAction (F04RunAction *)
 
virtual ~F04EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
G4int GetEventNo ()
 
void SetEventVerbose (G4int)
 
- 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 41 of file F04EventAction.hh.

Constructor & Destructor Documentation

F04EventAction::F04EventAction ( F04RunAction runAction)

Definition at line 48 of file F04EventAction.cc.

49  : fRunaction(runAction), fVerboseLevel(0)
50 {
51  fEventMessenger = new F04EventActionMessenger(this);
52 }
F04EventAction::~F04EventAction ( )
virtual

Definition at line 56 of file F04EventAction.cc.

57 {
58  delete fEventMessenger;
59 }

Member Function Documentation

void F04EventAction::BeginOfEventAction ( const G4Event evt)
virtual

Reimplemented from G4UserEventAction.

Definition at line 63 of file F04EventAction.cc.

64 {
65  G4int evtNb = evt->GetEventID();
66 
67  if(fVerboseLevel>0)
68  G4cout << "<<< Event " << evtNb << " started." << G4endl;
69 }
int G4int
Definition: G4Types.hh:78
G4int GetEventID() const
Definition: G4Event.hh:151
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

void F04EventAction::EndOfEventAction ( const G4Event evt)
virtual

Reimplemented from G4UserEventAction.

Definition at line 75 of file F04EventAction.cc.

76 {
77  if (fVerboseLevel>0)
78  G4cout << "<<< Event " << evt->GetEventID() << " ended." << G4endl;
79 
80  if (fRunaction->GetRndmFreq() == 2)
81  {
82  std::ostringstream os;
83  os<<"endOfEvent_"<<G4Threading::G4GetThreadId()<<".rndm";
84  G4Random::saveEngineStatus(os.str().c_str());
85  }
86 }
G4int GetRndmFreq()
Definition: F04RunAction.hh:55
G4int GetEventID() const
Definition: G4Event.hh:151
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
G4int G4GetThreadId()
Definition: G4Threading.cc:144

Here is the call graph for this function:

G4int F04EventAction::GetEventNo ( )

Definition at line 90 of file F04EventAction.cc.

91 {
93 }
G4EventManager * fpEventManager
G4int GetEventID() const
Definition: G4Event.hh:151
const G4Event * GetConstCurrentEvent()

Here is the call graph for this function:

void F04EventAction::SetEventVerbose ( G4int  level)

Definition at line 97 of file F04EventAction.cc.

98 {
99  fVerboseLevel = level ;
100 }

Here is the caller graph for this function:


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