75 if (trackToBeStored(track))
81 AddParticle(fmom, prodpos, endpos,
110 G4bool MCTruthTrackingAction::trackToBeStored(
const G4Track* track)
115 if (fmom.
e() > config->
GetMinE())
return true;
120 if(std::find( types.begin(), types.end(),
122 != types.end())
return true;
G4ParticleDefinition * GetDefinition() const
G4TrackingManager * fpTrackingManager
G4int GetParentID() const
static MCTruthManager * GetInstance()
G4double GetLocalTime() const
MCTruthConfig * GetConfig() const
const G4ThreeVector & GetPosition() const
G4int GetPDGEncoding() const
void SetUserTrackInformation(G4VUserTrackInformation *aValue)
G4VUserTrackInformation * GetUserInformation() const
G4TrackVector * GimmeSecondaries() const
virtual ~MCTruthTrackingAction()
G4double GetGlobalTime() const
const G4ThreeVector & GetVertexPosition() const
std::vector< G4int > & GetParticleTypes()
G4ThreeVector GetMomentum() const
std::vector< G4Track * > G4TrackVector
void SetParentID(const G4int aValue)
G4double GetTotalEnergy() const
Definition of the MCTruthTrackingAction class.
void SetUserInformation(G4VUserTrackInformation *aValue)
void PostUserTrackingAction(const G4Track *)
void PreUserTrackingAction(const G4Track *)
CLHEP::HepLorentzVector G4LorentzVector