Loading...
Searching...
No Matches
Public Member Functions | List of all members
RE02EventAction Class Reference

User event action class. More...

#include <Doxymodules_runAndEvent.h>

Inheritance diagram for RE02EventAction:
G4UserEventAction

Public Member Functions

 RE02EventAction ()
 
 ~RE02EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 

Detailed Description

User event action class.

Definition at line 50 of file Doxymodules_runAndEvent.h.

Constructor & Destructor Documentation

◆ RE02EventAction()

RE02EventAction::RE02EventAction ( )

Definition at line 40 of file RE02EventAction.cc.

◆ ~RE02EventAction()

RE02EventAction::~RE02EventAction ( )

Definition at line 45 of file RE02EventAction.cc.

46{}

Member Function Documentation

◆ BeginOfEventAction()

void RE02EventAction::BeginOfEventAction ( const G4Event )
virtual

Definition at line 49 of file RE02EventAction.cc.

50{}

◆ EndOfEventAction()

void RE02EventAction::EndOfEventAction ( const G4Event evt)
virtual

Definition at line 53 of file RE02EventAction.cc.

54{
55 G4int event_id = evt->GetEventID();
56
57 // periodic printing
58 //
59 if (event_id < 10 ||
60 (event_id < 1000 && event_id%100 == 0) ||
61 (event_id < 10000 && event_id%1000 == 0) ||
62 (event_id < 100000 && event_id%10000 == 0)) {
63 G4cout << ">>> Event " << evt->GetEventID() << G4endl;
64#ifdef print_stored_trajectories
65 // get number of stored trajectories
66 //
67 G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
68 G4int n_trajectories = 0;
69 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
70 G4cout << " " << n_trajectories
71 << " trajectories stored in this event." << G4endl;
72#endif
73 }
74
75}

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

Applications | User Support | Publications | Collaboration