1 #ifndef Candidate_CompositeRefBaseCandidate_h 2 #define Candidate_CompositeRefBaseCandidate_h 25 int pdgId = 0,
int status = 0,
bool integerCharge =
true ) :
29 int pdgId = 0,
int status = 0,
bool integerCharge =
true ) :
63 dau.push_back( cand );
int pdgId() const final
PDG identifier.
int Charge
electric charge type
std::vector< CandidateBaseRef > daughters
collection of references to daughters
CompositeRefBaseCandidate(const Candidate &c)
constructor from a particle
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
daughters dau
collection of references to daughters
CompositeRefBaseCandidate * clone() const override
returns a clone of the candidate
~CompositeRefBaseCandidate() override
destructor
CompositeRefBaseCandidate(Charge q, const LorentzVector &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
CompositeRefBaseCandidate()
default constructor
CompositeRefBaseCandidate(Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
constructor from values
bool overlap(const Candidate &) const override
check overlap with another candidate
const Candidate * daughter(size_type) const override
return daughter at a given position (throws an exception)
size_t numberOfDaughters() const override
number of daughters
void clearDaughters()
clear daughter references
math::XYZTLorentzVector LorentzVector
Lorentz vector.
int status() const final
status word
math::XYZPoint Point
point in the space
void addDaughter(const CandidateBaseRef &)
add a daughter via a reference
const Candidate * mother(size_type) const override
return mother at a given position, i = 0, ... numberOfMothers() - 1 (read only mode) ...
size_t numberOfMothers() const override
number of mothers
CandidateBaseRef daughterRef(size_type i) const
reference to daughter at given position
math::XYZPoint Point
point in the space
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.