Event action class.
More...
#include <Doxymodules_basic.h>
Event action class.
Definition at line 43 of file Doxymodules_basic.h.
◆ EventAction()
B2::EventAction::EventAction |
( |
| ) |
|
|
default |
◆ ~EventAction()
B2::EventAction::~EventAction |
( |
| ) |
|
|
overridedefault |
◆ BeginOfEventAction()
void B2::EventAction::BeginOfEventAction |
( |
const G4Event * |
| ) |
|
|
override |
◆ EndOfEventAction()
void B2::EventAction::EndOfEventAction |
( |
const G4Event * |
event | ) |
|
|
override |
Definition at line 48 of file EventAction.cc.
49{
50
51
53 std::size_t n_trajectories = 0;
54 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
55
56
57
58 G4int eventID = event->GetEventID();
59 if ( eventID < 100 || eventID % 100 == 0) {
60 G4cout << ">>> Event: " << eventID << G4endl;
61 if ( trajectoryContainer ) {
62 G4cout << " " << n_trajectories
63 << " trajectories stored in this event." << G4endl;
64 }
66 G4cout << " "
67 << hc->GetSize() << " hits stored in this event" << G4endl;
68 }
69}
The documentation for this class was generated from the following files: