#include <NewTrackAction.h>
Public Member Functions | |
NewTrackAction () | |
void | primary (const G4Track *aSecondary) const |
void | primary (G4Track *aSecondary) const |
void | secondary (const G4Track *aSecondary, const G4Track &mother, int) const |
void | secondary (G4Track *aSecondary, const G4Track &mother, int) const |
Private Member Functions | |
void | addUserInfoToPrimary (G4Track *aTrack) const |
void | addUserInfoToSecondary (G4Track *aTrack, const TrackInformation &motherInfo, int) const |
SimG4Core Action for new G4tracks. This action is called each time a new G4Track is formed. Since formation (i.e. filling of data members) is done gradually, the best moment to call NewTrackAction is not very clear. Currently done from StackingAction...
Definition at line 14 of file NewTrackAction.h.
NewTrackAction::NewTrackAction | ( | ) |
Definition at line 9 of file NewTrackAction.cc.
|
private |
Definition at line 34 of file NewTrackAction.cc.
References TrackInformation::isPrimary(), TrackInformation::putInHistory(), TrackInformation::setGenParticleP(), TrackInformation::setGenParticlePID(), and TrackInformation::storeTrack().
Referenced by primary().
|
private |
Definition at line 44 of file NewTrackAction.cc.
References TrackInformation::caloSurfaceParticleP(), TrackInformation::caloSurfaceParticlePID(), RemoveAddSevLevel::flag, TrackInformation::genParticleP(), TrackInformation::genParticlePID(), TrackInformation::getCastorHitPID(), TrackInformation::getIDCaloVolume(), TrackInformation::getIDLastVolume(), TrackInformation::getIDonCaloSurface(), TrackInformation::hasCastorHit(), TrackInformation::isPrimary(), LogDebug, TrackInformation::putInHistory(), TrackInformation::setCastorHitPID(), TrackInformation::setGenParticleP(), TrackInformation::setGenParticlePID(), TrackInformation::setIDonCaloSurface(), and TrackInformation::storeTrack().
Referenced by secondary().
void NewTrackAction::primary | ( | const G4Track * | aSecondary | ) | const |
Definition at line 11 of file NewTrackAction.cc.
Referenced by KillSecondariesStackingAction::ClassifyNewTrack(), and StackingAction::ClassifyNewTrack().
void NewTrackAction::primary | ( | G4Track * | aSecondary | ) | const |
Definition at line 13 of file NewTrackAction.cc.
References addUserInfoToPrimary().
void NewTrackAction::secondary | ( | const G4Track * | aSecondary, |
const G4Track & | mother, | ||
int | flag | ||
) | const |
Definition at line 15 of file NewTrackAction.cc.
References RemoveAddSevLevel::flag.
Referenced by KillSecondariesStackingAction::ClassifyNewTrack(), and StackingAction::ClassifyNewTrack().
void NewTrackAction::secondary | ( | G4Track * | aSecondary, |
const G4Track & | mother, | ||
int | flag | ||
) | const |
Definition at line 19 of file NewTrackAction.cc.
References addUserInfoToSecondary(), RemoveAddSevLevel::flag, and LogDebug.