G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
G4OCCTTrackingAction Class Reference

Tracking action that records one row per G4Track into the "tracks" ntuple. More...

#include <G4OCCTTrackingAction.hh>

Inheritance diagram for G4OCCTTrackingAction:

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ G4OCCTTrackingAction()

G4OCCTTrackingAction::G4OCCTTrackingAction ( G4OCCTEventAction eventAction,
const G4OCCTRunAction runAction 
)

Definition at line 15 of file G4OCCTTrackingAction.cc.

◆ ~G4OCCTTrackingAction()

G4OCCTTrackingAction::~G4OCCTTrackingAction ( )
overridedefault

Member Function Documentation

◆ AddEdepToCurrentTrack()

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().

◆ PostUserTrackingAction()

void G4OCCTTrackingAction::PostUserTrackingAction ( const G4Track *  track)
override

◆ PreUserTrackingAction()

void G4OCCTTrackingAction::PreUserTrackingAction ( const G4Track *  track)
override

Definition at line 19 of file G4OCCTTrackingAction.cc.

References G4OCCTEventAction::IncrementPrimaries().


The documentation for this class was generated from the following files: