1 #ifndef Candidate_CompositeRefCandidate_h 2 #define Candidate_CompositeRefCandidate_h 27 int pdgId = 0,
int status = 0,
bool integerCharge =
true ) :
31 int pdgId = 0,
int status = 0,
bool integerCharge =
true ) :
int pdgId() const final
PDG identifier.
int Charge
electric charge type
void clearDaughters()
clear daughter references
bool overlap(const Candidate &) const override
check overlap with another candidate
CandidateRefVector mothers
collection of references to daughters
CandidateRef daughterRef(size_type i) const
reference to daughter at given position
const Candidate * mother(size_t i=0) const override
return pointer to mother
~CompositeRefCandidate() override
destructor
void addDaughter(const CandidateRef &)
add a daughter via a reference
const mothers & motherRefVector() const
references to mothers
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
CompositeRefCandidate * clone() const override
returns a clone of the candidate
size_t numberOfMothers() const override
number of mothers (zero or one in most of but not all the cases)
const daughters & daughterRefVector() const
references to daughtes
daughters dau
collection of references to daughters
CompositeRefCandidate(const Candidate &p)
constructor from a candidate
daughters mom
collection of references to mothers
const LorentzVector & p4() const final
four-momentum Lorentz vector
CompositeRefCandidate(Charge q, const LorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
constructor from values
void addMother(const CandidateRef &)
add a daughter via a reference
double p() const final
magnitude of momentum vector
const Candidate * daughter(size_type) const override
return daughter at a given position (throws an exception)
void clear()
Clear the vector.
size_t numberOfDaughters() const override
number of daughters
void resetDaughters(const edm::ProductID &id)
set daughters product ID
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Structure Point Contains parameters of Gaussian fits to DMRs.
CompositeRefCandidate(Charge q, const PolarLorentzVector &p4, const Point &vtx=Point(0, 0, 0), int pdgId=0, int status=0, bool integerCharge=true)
constructor from values
int status() const final
status word
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
CandidateRefVector daughters
collection of references to daughters
CandidateRef motherRef(size_type i=0) const
reference to mother at given position
math::XYZPoint Point
point in the space
CompositeRefCandidate()
default constructor
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.