Geant4  10.02.p03
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)
 

Private Attributes

F04RunActionfRunaction
 
F04EventActionMessengerfEventMessenger
 
G4int fVerboseLevel
 

Additional Inherited Members

- Protected Attributes inherited from G4UserEventAction
G4EventManagerfpEventManager
 

Detailed Description

Definition at line 41 of file F04EventAction.hh.

Constructor & Destructor Documentation

◆ F04EventAction()

F04EventAction::F04EventAction ( F04RunAction runAction)

Definition at line 48 of file F04EventAction.cc.

49  : fRunaction(runAction), fVerboseLevel(0)
50 {
52 }
F04EventActionMessenger * fEventMessenger
F04RunAction * fRunaction

◆ ~F04EventAction()

F04EventAction::~F04EventAction ( )
virtual

Definition at line 56 of file F04EventAction.cc.

57 {
58  delete fEventMessenger;
59 }
F04EventActionMessenger * fEventMessenger

Member Function Documentation

◆ BeginOfEventAction()

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
G4GLOB_DLL std::ostream G4cout
G4int GetEventID() const
Definition: G4Event.hh:151
#define G4endl
Definition: G4ios.hh:61
Here is the call graph for this function:

◆ EndOfEventAction()

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
G4GLOB_DLL std::ostream G4cout
G4int GetEventID() const
Definition: G4Event.hh:151
#define G4endl
Definition: G4ios.hh:61
F04RunAction * fRunaction
G4int G4GetThreadId()
Definition: G4Threading.cc:134
Here is the call graph for this function:

◆ GetEventNo()

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:

◆ SetEventVerbose()

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:

Member Data Documentation

◆ fEventMessenger

F04EventActionMessenger* F04EventAction::fEventMessenger
private

Definition at line 59 of file F04EventAction.hh.

◆ fRunaction

F04RunAction* F04EventAction::fRunaction
private

Definition at line 58 of file F04EventAction.hh.

◆ fVerboseLevel

G4int F04EventAction::fVerboseLevel
private

Definition at line 61 of file F04EventAction.hh.


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