Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
RE02EventAction Class Reference

#include <RE02EventAction.hh>

Inheritance diagram for RE02EventAction:
G4UserEventAction

Public Member Functions

 RE02EventAction ()
 
 ~RE02EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 
- Public Member Functions inherited from G4UserEventAction
 G4UserEventAction ()
 
virtual ~G4UserEventAction ()
 
void SetEventManager (G4EventManager *value)
 

Additional Inherited Members

- Protected Attributes inherited from G4UserEventAction
G4EventManagerfpEventManager
 

Detailed Description

User event action class

Definition at line 49 of file RE02EventAction.hh.

Constructor & Destructor Documentation

RE02EventAction::RE02EventAction ( )

Definition at line 41 of file RE02EventAction.cc.

RE02EventAction::~RE02EventAction ( )

Definition at line 46 of file RE02EventAction.cc.

47 {}

Member Function Documentation

void RE02EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

Definition at line 50 of file RE02EventAction.cc.

51 {}
void RE02EventAction::EndOfEventAction ( const G4Event evt)
virtual

Reimplemented from G4UserEventAction.

Definition at line 54 of file RE02EventAction.cc.

References G4TrajectoryContainer::entries(), G4cout, G4endl, G4Event::GetEventID(), and G4Event::GetTrajectoryContainer().

55 {
56  G4int event_id = evt->GetEventID();
57 
58  // periodic printing
59  //
60  if (event_id < 100 || event_id%100 == 0) {
61  G4cout << ">>> Event " << evt->GetEventID() << G4endl;
62 #ifdef print_stored_trajectories
63  // get number of stored trajectories
64  //
65  G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
66  G4int n_trajectories = 0;
67  if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
68  G4cout << " " << n_trajectories
69  << " trajectories stored in this event." << G4endl;
70 #endif
71  }
72 
73 }
int G4int
Definition: G4Types.hh:78
G4TrajectoryContainer * GetTrajectoryContainer() const
Definition: G4Event.hh:178
G4int GetEventID() const
Definition: G4Event.hh:140
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61

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