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

User event action class. More...

#include <Doxymodules_runAndEvent.h>

Inheritance diagram for RE04EventAction:
G4UserEventAction

Public Member Functions

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

Detailed Description

User event action class.

Definition at line 85 of file Doxymodules_runAndEvent.h.

Constructor & Destructor Documentation

◆ RE04EventAction()

RE04EventAction::RE04EventAction ( )

Definition at line 42 of file RE04EventAction.cc.

◆ ~RE04EventAction()

RE04EventAction::~RE04EventAction ( )

Definition at line 47 of file RE04EventAction.cc.

48{;}

Member Function Documentation

◆ BeginOfEventAction()

void RE04EventAction::BeginOfEventAction ( const G4Event )
virtual

Definition at line 51 of file RE04EventAction.cc.

52{;}

◆ EndOfEventAction()

void RE04EventAction::EndOfEventAction ( const G4Event evt)
virtual

Definition at line 55 of file RE04EventAction.cc.

56{
57 G4cout << ">>> Summary of Event " << evt->GetEventID() << G4endl;
58
59 // get number of stored trajectories
60 G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
61 G4int n_trajectories = 0;
62 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
63 // extract the trajectories and print them out
64 G4cout << G4endl;
65 for(G4int i=0; i<n_trajectories; i++)
66 {
68 = (RE04Trajectory*)((*(evt->GetTrajectoryContainer()))[i]);
69 trj->ShowTrajectory();
70 }
71}
User trajectory class.
virtual void ShowTrajectory(std::ostream &os=G4cout) const

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

Applications | User Support | Publications | Collaboration