5#ifndef G4USERACTIONS__G4UA_G4TRACKCOUNTER_H
6#define G4USERACTIONS__G4UA_G4TRACKCOUNTER_H
9#include "G4UserEventAction.hh"
10#include "G4UserTrackingAction.hh"
22 public G4UserTrackingAction
A simple action which counts tracks.
virtual void PreUserTrackingAction(const G4Track *track) override final
Increments the track counters.
const Report & getReport() const
Retrieve my counts.
Report m_report
Track counts for this thread.
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....
unsigned int nPrimaryTracks
Number of primary tracks.
unsigned int n50MeVTracks
Number of tracks with kinetic E > 50 MeV.
unsigned int nSecondaryTracks
Number of secondary tracks.
unsigned int nTotalTracks
Total number of tracks.
unsigned int nEvents
Event counter. Might want a larger int for this.