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