![]() |
ATLAS Offline Software
|
A simple action which counts tracks. More...
#include <G4TrackCounter.h>
Classes | |
| struct | Report |
| Simple struct for holding the counts Might want to use larger integral types for this... More... | |
Public Member Functions | |
| virtual void | BeginOfEventAction (const G4Event *event) override final |
| Increments event counter. More... | |
| virtual void | PreUserTrackingAction (const G4Track *track) override final |
| Increments the track counters. More... | |
| const Report & | getReport () const |
| Retrieve my counts. More... | |
Private Attributes | |
| Report | m_report |
| Track counts for this thread. More... | |
A simple action which counts tracks.
This action currently implements BeginEvent and PreTracking interfaces.
Definition at line 21 of file G4TrackCounter.h.
|
finaloverridevirtual |
Increments event counter.
I feel like there must be a better way to get this info. Hmm, the G4Run has a numberOfEvent field...
Definition at line 27 of file G4TrackCounter.cxx.
|
finaloverridevirtual |
|
private |
Track counts for this thread.
Definition at line 60 of file G4TrackCounter.h.
1.8.18