k4SimGeant4
Loading...
Searching...
No Matches
sim::ParticleHistoryAction Class Reference

#include <SimG4Full/include/SimG4Full/ParticleHistoryAction.h>

Inheritance diagram for sim::ParticleHistoryAction:
Collaboration diagram for sim::ParticleHistoryAction:

Public Member Functions

 ParticleHistoryAction (double energyCut)
 
virtual ~ParticleHistoryAction ()=default
 
void PreUserTrackingAction (const G4Track *aTrack)
 empty action - particles are only saved at the end of track
 
void PostUserTrackingAction (const G4Track *aTrack)
 particles are saved here, after geant4 is done simulating the track
 
bool selectSecondary (const G4Track &aTrack, double aEnergyCut)
 Simple filter for particles to be saved, based on their energy.
 

Private Attributes

double m_energyCut
 energy threshold for secondaries to be saved
 

Constructor & Destructor Documentation

◆ ParticleHistoryAction()

ParticleHistoryAction::ParticleHistoryAction ( double energyCut)

◆ ~ParticleHistoryAction()

virtual sim::ParticleHistoryAction::~ParticleHistoryAction ( )
virtualdefault

Member Function Documentation

◆ PostUserTrackingAction()

void ParticleHistoryAction::PostUserTrackingAction ( const G4Track * aTrack)

particles are saved here, after geant4 is done simulating the track

◆ PreUserTrackingAction()

void ParticleHistoryAction::PreUserTrackingAction ( const G4Track * aTrack)

empty action - particles are only saved at the end of track

◆ selectSecondary()

bool ParticleHistoryAction::selectSecondary ( const G4Track & aTrack,
double aEnergyCut )

Simple filter for particles to be saved, based on their energy.

Parameters
[in]aTracktrack of the particle to be saved
[in]aEnergyCutenergy threshold above which particles are saved

Member Data Documentation

◆ m_energyCut

double sim::ParticleHistoryAction::m_energyCut
private

energy threshold for secondaries to be saved


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