|
G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
|
Tracking action that records one row per G4Track into the "tracks" ntuple. More...
#include <G4OCCTTrackingAction.hh>
Public Member Functions | |
| G4OCCTTrackingAction (G4OCCTEventAction *eventAction, const G4OCCTRunAction *runAction) | |
| ~G4OCCTTrackingAction () override=default | |
| void | PreUserTrackingAction (const G4Track *track) override |
| void | PostUserTrackingAction (const G4Track *track) override |
| void | AddEdepToCurrentTrack (G4double edep) |
| Called from G4OCCTSteppingAction to accumulate energy deposit for the current track. | |
Tracking action that records one row per G4Track into the "tracks" ntuple.
Columns written per track (at PostUserTrackingAction): EventID, TrackID, ParentID, ParticleName, CreatorProcess, TotalEdep [MeV], TrackLength [mm], X0 [mm], Y0 [mm], Z0 [mm], Xf [mm], Yf [mm], Zf [mm]
TotalEdep is accumulated step-by-step via AddEdepToCurrentTrack(), called from G4OCCTSteppingAction.
Definition at line 27 of file G4OCCTTrackingAction.hh.
| G4OCCTTrackingAction::G4OCCTTrackingAction | ( | G4OCCTEventAction * | eventAction, |
| const G4OCCTRunAction * | runAction | ||
| ) |
Definition at line 15 of file G4OCCTTrackingAction.cc.
|
overridedefault |
| void G4OCCTTrackingAction::AddEdepToCurrentTrack | ( | G4double | edep | ) |
Called from G4OCCTSteppingAction to accumulate energy deposit for the current track.
Definition at line 59 of file G4OCCTTrackingAction.cc.
Referenced by G4OCCTSteppingAction::UserSteppingAction().
|
override |
Definition at line 26 of file G4OCCTTrackingAction.cc.
References G4OCCTEventAction::AddTrack(), G4OCCTEventAction::GetEventId(), and G4OCCTRunAction::GetTracksNtupleId().
|
override |
Definition at line 19 of file G4OCCTTrackingAction.cc.
References G4OCCTEventAction::IncrementPrimaries().