2#include "McTruth/McParticle.h"
39 const HepLorentzVector& initialMomentum,
40 const HepLorentzVector& finalMomentum,
41 const HepLorentzVector& initialPosition,
42 const HepLorentzVector& finalPosition,
43 const std::string process)
53 const HepLorentzVector& initialMomentum,
54 const HepLorentzVector& initialPosition,
const std::string process)
57 m_statusFlags = flags;
58 m_initialFourMomentum = initialMomentum;
66 const HepLorentzVector& initialMomentum,
67 const HepLorentzVector& initialPosition,
const std::string process)
71 m_statusFlags = flags;
72 m_initialFourMomentum = initialMomentum;
97 return m_initialPosition;
101 return m_finalPosition;
105 return m_initialFourMomentum;
113 return m_statusFlags;
125 SmartRefVector<Event::McParticle>::iterator daughtIter;
126 for(daughtIter = m_daughters.begin();daughtIter != m_daughters.end();daughtIter++)
128 if (mcPart == *daughtIter)
130 m_daughters.erase(daughtIter);
void removeDaughter(const SmartRef< McParticle > mcPart)
Used for pruning.
bool primaryParticle() const
Retrieve whether this is a primary particle.
const HepLorentzVector & initialPosition() const
Retrieve pointer to the start, end vertex positions.
void setMother(const SmartRef< McParticle > m)
set the mother particle
@ DECAYFLT
Decayed by generator.
@ PRIMARY
Decayed in flight.
const HepLorentzVector & initialFourMomentum() const
const McParticle & mother() const
access to the mother particle
unsigned int statusFlags() const
retrieve all of status flags for const object
void initialize(StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &initialPosition, const std::string process="")
Set the initial attributes of the McParticle.
bool decayFromGenerator() const
Decayed from generator.
bool leafParticle() const
Retrieve whether this is a leaf particle.
void finalize(const HepLorentzVector &finalPosition)
Set the final attributes of the McParticle.
bool decayInFlight() const
Decayed in flight.
void init(McParticle *mother, StdHepId id, unsigned int statusBits, const HepLorentzVector &initialMomentum, const HepLorentzVector &finalMomentum, const HepLorentzVector &initialPosition, const HepLorentzVector &finalPosition, const std::string process="")
const HepLorentzVector & finalPosition() const
StdHepId particleProperty() const
Retrieve particle property.