CMS 3D CMS Logo

CompositeRefCandidate.cc
Go to the documentation of this file.
3 
4 using namespace reco;
5 
7 
9 
11  return (i < numberOfDaughters()) ? &*dau[i] : nullptr; // i >= 0, since i is unsigned
12 }
13 
15  return (i < numberOfMothers()) ? &*mom[i] : nullptr; // i >= 0, since i is unsigned
16 }
17 
19 
21 
22 size_t CompositeRefCandidate::numberOfMothers() const { return mom.size(); }
23 
25  throw cms::Exception("Error") << "can't check overlap internally for CompositeRefCanddate";
26 }
size_t size_type
Definition: Candidate.h:29
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
~CompositeRefCandidate() override
destructor
size_t numberOfDaughters() const override
number of daughters
size_t numberOfMothers() const override
number of mothers (zero or one in most of but not all the cases)
daughters dau
collection of references to daughters
daughters mom
collection of references to mothers
bool overlap(const Candidate &) const override
check overlap with another candidate
size_type size() const
Size of the RefVector.
Definition: RefVector.h:102
const Candidate * mother(size_t i=0) const override
return pointer to mother
fixed size matrix
CompositeRefCandidate * clone() const override
returns a clone of the candidate
CompositeRefCandidate()
default constructor