allpix::SetTrackInfoUserHookG4
Assigns every G4Track a TrackInfoG4 which carries various information, including the custom track id.
#include <SetTrackInfoUserHookG4.hpp>
Inherits from G4UserTrackingAction
Public Functions
Name | |
---|---|
SetTrackInfoUserHookG4() =default Constructor taking a TrackInfoManager*. |
|
~SetTrackInfoUserHookG4() override =default Default destructor. |
|
void | PreUserTrackingAction(const G4Track * aTrack) override Called for every G4Track at beginning. |
void | PostUserTrackingAction(const G4Track * aTrack) override Called for every G4Track at end. |
Public Functions Documentation
function SetTrackInfoUserHookG4
explicit SetTrackInfoUserHookG4() =default
Constructor taking a TrackInfoManager*.
Parameters:
- module Pointer to the DepositionGeant4 module, required to create the TrackInfoG4 instances
function ~SetTrackInfoUserHookG4
~SetTrackInfoUserHookG4() override =default
Default destructor.
function PreUserTrackingAction
void PreUserTrackingAction(
const G4Track * aTrack
) override
Called for every G4Track at beginning.
Parameters:
- aTrack The pointer to the G4Track for which this routine is called
function PostUserTrackingAction
void PostUserTrackingAction(
const G4Track * aTrack
) override
Called for every G4Track at end.
Parameters:
- aTrack The pointer to the G4Track for which this routine is called
Updated on 2024-12-13 at 08:31:36 +0000