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

#include <ExN02EventAction.hh>

Inheritance diagram for ExN02EventAction:
Collaboration diagram for ExN02EventAction:

Public Member Functions

 ExN02EventAction ()
 
 ~ExN02EventAction ()
 
void BeginOfEventAction (const G4Event *)
 
void EndOfEventAction (const G4Event *)
 
- 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 44 of file ExN02EventAction.hh.

Constructor & Destructor Documentation

ExN02EventAction::ExN02EventAction ( )

Definition at line 45 of file ExN02EventAction.cc.

46 {}
ExN02EventAction::~ExN02EventAction ( )

Definition at line 50 of file ExN02EventAction.cc.

51 {}

Member Function Documentation

void ExN02EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

Definition at line 55 of file ExN02EventAction.cc.

56 {}
void ExN02EventAction::EndOfEventAction ( const G4Event evt)
virtual

Reimplemented from G4UserEventAction.

Definition at line 60 of file ExN02EventAction.cc.

61 {
62  G4int event_id = evt->GetEventID();
63 
64  // get number of stored trajectories
65  //
66  G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
67  G4int n_trajectories = 0;
68  if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
69 
70  // periodic printing
71  //
72  if (event_id < 100 || event_id%100 == 0) {
73  G4cout << ">>> Event " << evt->GetEventID() << G4endl;
74  G4cout << " " << n_trajectories
75  << " trajectories stored in this event." << G4endl;
76  }
77 }
int G4int
Definition: G4Types.hh:78
G4TrajectoryContainer * GetTrajectoryContainer() const
Definition: G4Event.hh:189
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:


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