7#ifndef G4OCCT_APP_G4OCCTEventAction_hh
8#define G4OCCT_APP_G4OCCTEventAction_hh
11#include <G4UserEventAction.hh>
34 void AddStep(G4double edep, G4double stepLength);
44 G4double fTotalEdep = 0.0;
45 G4double fTotalLength = 0.0;
48 G4int fNPrimaries = 0;
Event action that accumulates per-event quantities.
void EndOfEventAction(const G4Event *event) override
G4int GetEventId() const
Returns the current event ID; cached in BeginOfEventAction.
void IncrementPrimaries()
Called from G4OCCTTrackingAction for primary tracks.
void AddTrack()
Called from G4OCCTTrackingAction at the end of each track.
void BeginOfEventAction(const G4Event *event) override
~G4OCCTEventAction() override=default
void AddStep(G4double edep, G4double stepLength)
Called from G4OCCTSteppingAction for each step.
Run action that opens and closes a G4AnalysisManager CSV output file.