G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
G4OCCTTrackingAction.hh
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2// Copyright (C) 2026 G4OCCT Contributors
3
6
7#ifndef G4OCCT_APP_G4OCCTTrackingAction_hh
8#define G4OCCT_APP_G4OCCTTrackingAction_hh
9
10#include <G4Types.hh>
11#include <G4UserTrackingAction.hh>
12
14class G4OCCTRunAction;
15
27class G4OCCTTrackingAction : public G4UserTrackingAction {
28public:
29 G4OCCTTrackingAction(G4OCCTEventAction* eventAction, const G4OCCTRunAction* runAction);
30 ~G4OCCTTrackingAction() override = default;
31
32 void PreUserTrackingAction(const G4Track* track) override;
33 void PostUserTrackingAction(const G4Track* track) override;
34
36 void AddEdepToCurrentTrack(G4double edep);
37
38private:
39 G4OCCTEventAction* fEventAction;
40 const G4OCCTRunAction* fRunAction;
41
42 G4double fCurrentTrackEdep = 0.0;
43};
44
45#endif // G4OCCT_APP_G4OCCTTrackingAction_hh
Event action that accumulates per-event quantities.
Run action that opens and closes a G4AnalysisManager CSV output file.
Tracking action that records one row per G4Track into the "tracks" ntuple.
void PostUserTrackingAction(const G4Track *track) override
void PreUserTrackingAction(const G4Track *track) override
void AddEdepToCurrentTrack(G4double edep)
Called from G4OCCTSteppingAction to accumulate energy deposit for the current track.
~G4OCCTTrackingAction() override=default