|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef G4USERACTIONS__G4UA_G4TRACKCOUNTER_H
6 #define G4USERACTIONS__G4UA_G4TRACKCOUNTER_H
9 #include "G4UserEventAction.hh"
10 #include "G4UserTrackingAction.hh"
22 public G4UserTrackingAction
unsigned int nSecondaryTracks
Number of secondary tracks.
void merge(const Report &rep)
unsigned int nTotalTracks
Total number of tracks.
A simple action which counts tracks.
unsigned int n50MeVTracks
Number of tracks with kinetic E > 50 MeV.
POOL::TEvent event(POOL::TEvent::kClassAccess)
virtual void PreUserTrackingAction(const G4Track *track) override final
Increments the track counters.
const Report & getReport() const
Retrieve my counts.
unsigned int nEvents
Event counter. Might want a larger int for this.
virtual void BeginOfEventAction(const G4Event *event) override final
Increments event counter.
Simple struct for holding the counts Might want to use larger integral types for this....
Report m_report
Track counts for this thread.
unsigned int nPrimaryTracks
Number of primary tracks.