Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
F04EventAction Class Reference

#include <Doxymodules_field.h>

Inheritance diagram for F04EventAction:
G4UserEventAction

Public Member Functions

 F04EventAction (F04RunAction *)
 
 ~F04EventAction () override
 
void BeginOfEventAction (const G4Event *) override
 
void EndOfEventAction (const G4Event *) override
 
G4int GetEventNo ()
 
void SetEventVerbose (G4int)
 

Private Attributes

F04RunActionfRunaction = nullptr
 
F04EventActionMessengerfEventMessenger = nullptr
 
G4int fVerboseLevel = 0
 

Detailed Description

Definition at line 102 of file Doxymodules_field.h.

Constructor & Destructor Documentation

◆ F04EventAction()

F04EventAction::F04EventAction ( F04RunAction runAction)

Definition at line 47 of file F04EventAction.cc.

48 : fRunaction(runAction)
49{
51}
F04EventActionMessenger * fEventMessenger
F04RunAction * fRunaction

◆ ~F04EventAction()

F04EventAction::~F04EventAction ( )
override

Definition at line 55 of file F04EventAction.cc.

56{
57 delete fEventMessenger;
58}

Member Function Documentation

◆ BeginOfEventAction()

void F04EventAction::BeginOfEventAction ( const G4Event evt)
override

Definition at line 62 of file F04EventAction.cc.

63{
64 G4int evtNb = evt->GetEventID();
65
66 if(fVerboseLevel>0)
67 G4cout << "<<< Event " << evtNb << " started." << G4endl;
68}

◆ EndOfEventAction()

void F04EventAction::EndOfEventAction ( const G4Event evt)
override

Definition at line 74 of file F04EventAction.cc.

75{
76 if (fVerboseLevel>0)
77 G4cout << "<<< Event " << evt->GetEventID() << " ended." << G4endl;
78
79 if (fRunaction->GetRndmFreq() == 2)
80 {
81 std::ostringstream os;
82 os<<"endOfEvent_"<<G4Threading::G4GetThreadId()<<".rndm";
83 G4Random::saveEngineStatus(os.str().c_str());
84 }
85}
G4int GetRndmFreq()

◆ GetEventNo()

G4int F04EventAction::GetEventNo ( )

Definition at line 89 of file F04EventAction.cc.

90{
91 return fpEventManager->GetConstCurrentEvent()->GetEventID();
92}

◆ SetEventVerbose()

void F04EventAction::SetEventVerbose ( G4int  level)

Definition at line 96 of file F04EventAction.cc.

97{
98 fVerboseLevel = level ;
99}

Member Data Documentation

◆ fRunaction

F04RunAction* F04EventAction::fRunaction = nullptr
private

Definition at line 57 of file F04EventAction.hh.

◆ fEventMessenger

F04EventActionMessenger* F04EventAction::fEventMessenger = nullptr
private

Definition at line 58 of file F04EventAction.hh.

◆ fVerboseLevel

G4int F04EventAction::fVerboseLevel = 0
private

Definition at line 60 of file F04EventAction.hh.


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

Applications | User Support | Publications | Collaboration