85 if (TrackToBeStored(track))
91 AddParticle(fmom, prodpos, endpos,
103 for(
unsigned int index = 0 ; index < childrens->size() ; ++index )
105 G4Track* tr = (*childrens)[index] ;
122 G4bool MCTruthTrackingAction::TrackToBeStored(
const G4Track* track)
127 if (fmom.
e() > config->
GetMinE())
return true;
132 if(std::find( types.begin(), types.end(),
134 != 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()
void SetUserInformation(G4VUserTrackInformation *aValue) const
G4ThreeVector GetMomentum() const
std::vector< G4Track * > G4TrackVector
void SetParentID(const G4int aValue)
G4double GetTotalEnergy() const
Definition of the MCTruthTrackingAction class.
void PostUserTrackingAction(const G4Track *)
void PreUserTrackingAction(const G4Track *)
CLHEP::HepLorentzVector G4LorentzVector