Event action class.
More...
#include <Doxymodules_parallel.h>
Event action class.
Definition at line 95 of file Doxymodules_parallel.h.
◆ B2EventAction()
B2EventAction::B2EventAction |
( |
| ) |
|
◆ ~B2EventAction()
B2EventAction::~B2EventAction |
( |
| ) |
|
|
virtual |
◆ BeginOfEventAction()
void B2EventAction::BeginOfEventAction |
( |
const G4Event * |
| ) |
|
|
virtual |
◆ EndOfEventAction()
void B2EventAction::EndOfEventAction |
( |
const G4Event * |
event | ) |
|
|
virtual |
Definition at line 56 of file B2EventAction.cc.
57{
58
59
61 G4int n_trajectories = 0;
62 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
63
64
65
66 G4int eventID = event->GetEventID();
67 if ( eventID < 100 || eventID % 100 == 0) {
68 G4cout << ">>> Event: " << eventID << G4endl;
69 if ( trajectoryContainer ) {
70 G4cout << " " << n_trajectories
71 << " trajectories stored in this event." << G4endl;
72 }
74 G4cout << " "
75 << hc->GetSize() << " hits stored in this event" << G4endl;
76 }
77}
The documentation for this class was generated from the following files: