const std::vector< size_t > & Daughters() const
Returns the collection of daughter particles.
int NumDaughters() const
Returns the number of daughter particles flowing from this one.
size_t Self() const
Returns the index of this particle.
static constexpr size_t kPFParticlePrimary
Define index to signify primary particle.
std::vector< size_t > fDaughters
Vector of indices into PFParticle Collection for daughters.
int PdgCode() const
Return the type of particle as a PDG ID.
int fPdgCode
A preliminary estimate of the PFParticle type using the PDG code.
bool IsPrimary() const
Returns whether the particle is the root of the flow.
friend std::ostream & operator<<(std::ostream &o, const PFParticle &c)
PFParticle & operator=(const PFParticle &other)=default
Copy assignment operator (using defaults)
Hierarchical representation of particle flow.
friend bool operator<(const PFParticle &a, const PFParticle &b)
PFParticle()
Default constructor necessary for gccxml - not really for public use.
size_t fParent
Index into PFParticle collection for parent.
size_t Daughter(size_t idx) const
Returns the ID of the specified daughter.