1 #ifndef Candidate_CompositePtrCandidate_h 2 #define Candidate_CompositePtrCandidate_h 22 typedef std::vector<CandidatePtr>
mothers;
27 int pdgId = 0,
int status = 0,
bool integerCharge =
true ) :
31 int pdgId = 0,
int status = 0,
bool integerCharge =
true ) :
77 dau.push_back( cand );
bool overlap(const Candidate &) const override
check overlap with another candidate
int pdgId() const final
PDG identifier.
int Charge
electric charge type
CompositePtrCandidate()
default constructor
CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
size_type numberOfSourceCandidatePtrs() const override
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
size_t numberOfDaughters() const override
number of daughters
daughters dau
collection of references to daughters
~CompositePtrCandidate() override
destructor
CompositePtrCandidate(const Candidate &p)
constructor from a Candidate
const LorentzVector & p4() const final
four-momentum Lorentz vector
const Candidate * mother(size_t i=0) const override
return pointer to mother
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
std::vector< CandidatePtr > daughters
collection of references to daughters
double p() const final
magnitude of momentum vector
const Candidate * daughter(size_type) const override
return daughter at a given position (throws an exception)
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
std::vector< CandidatePtr > mothers
collection of references to daughters
math::XYZTLorentzVector LorentzVector
Lorentz vector.
void clearDaughters()
clear daughter references
CompositePtrCandidate * clone() const override
returns a clone of the candidate
CandidatePtr sourceCandidatePtr(size_type i) const override
const daughters & daughterPtrVector() const
references to daughtes
int status() const final
status word
void addDaughter(const CandidatePtr &)
add a daughter via a reference
size_t numberOfMothers() const override
number of mothers
math::XYZPoint Point
point in the space
math::XYZPoint Point
point in the space
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.