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

#include <RE04EventAction.hh>

Inheritance diagram for RE04EventAction:
Collaboration diagram for RE04EventAction:

Public Member Functions

 RE04EventAction ()
 
 ~RE04EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual 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

User event action class

Definition at line 48 of file RE04EventAction.hh.

Constructor & Destructor Documentation

RE04EventAction::RE04EventAction ( )

Definition at line 43 of file RE04EventAction.cc.

45 {;}
RE04EventAction::~RE04EventAction ( )

Definition at line 48 of file RE04EventAction.cc.

49 {;}

Member Function Documentation

void RE04EventAction::BeginOfEventAction ( const G4Event )
virtual

Reimplemented from G4UserEventAction.

Definition at line 52 of file RE04EventAction.cc.

53 {;}
void RE04EventAction::EndOfEventAction ( const G4Event evt)
virtual

Reimplemented from G4UserEventAction.

Definition at line 56 of file RE04EventAction.cc.

57 {
58  G4cout << ">>> Summary of Event " << evt->GetEventID() << G4endl;
59 
60  // get number of stored trajectories
61  G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
62  G4int n_trajectories = 0;
63  if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
64  // extract the trajectories and print them out
65  G4cout << G4endl;
66  for(G4int i=0; i<n_trajectories; i++)
67  {
68  RE04Trajectory* trj
69  = (RE04Trajectory*)((*(evt->GetTrajectoryContainer()))[i]);
70  trj->ShowTrajectory();
71  }
72 }
int G4int
Definition: G4Types.hh:78
G4TrajectoryContainer * GetTrajectoryContainer() const
Definition: G4Event.hh:189
virtual void ShowTrajectory(std::ostream &os=G4cout) const
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: