1 #ifndef Candidate_CompositePtrCandidate_h
2 #define Candidate_CompositePtrCandidate_h
24 typedef std::vector<CandidatePtr>
mothers;
29 int pdgId = 0,
int status = 0,
bool integerCharge =
true ) :
33 int pdgId = 0,
int status = 0,
bool integerCharge =
true ) :
91 dau.push_back( cand );
candidate::iterator_imp_specific_dummy< daughters > iterator_imp_specific
iterator implementation
int Charge
electric charge type
virtual int pdgId() const
PDG identifier.
virtual double p() const
magnitude of momentum vector
CompositePtrCandidate()
default constructor
CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
candidate::const_iterator const_iterator
virtual int status() const
status word
CompositePtrCandidate(Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
constructor from values
daughters dau
collection of references to daughters
virtual CompositePtrCandidate * clone() const
returns a clone of the candidate
virtual size_t numberOfDaughters() const
number of daughters
virtual const Candidate * daughter(size_type) const
return daughter at a given position (throws an exception)
virtual CandidatePtr sourceCandidatePtr(size_type i) const
CompositePtrCandidate(const Candidate &p)
constructor from a Candidate
virtual size_type numberOfSourceCandidatePtrs() const
CompositePtrCandidate(Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
constructor from values
candidate::const_iterator_imp_specific< daughters > const_iterator_imp_specific
const iterator implementation
virtual const Candidate * mother(size_t i=0) const
return pointer to mother
virtual ~CompositePtrCandidate()
destructor
std::vector< CandidatePtr > daughters
collection of references to daughters
candidate::iterator iterator
virtual const_iterator begin() const
first daughter const_iterator
virtual bool overlap(const Candidate &) const
check overlap with another candidate
std::vector< CandidatePtr > mothers
collection of references to daughters
math::XYZTLorentzVector LorentzVector
Lorentz vector.
void clearDaughters()
clear daughter references
virtual size_t numberOfMothers() const
number of mothers
virtual const_iterator end() const
last daughter const_iterator
const daughters & daughterPtrVector() const
references to daughtes
void addDaughter(const CandidatePtr &)
add a daughter via a reference
math::XYZPoint Point
point in the space
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
math::XYZPoint Point
point in the space
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.