CMS 3D CMS Logo

CompositeRefBaseCandidate.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 
14 const Candidate* CompositeRefBaseCandidate::mother(size_type i) const { return nullptr; }
15 
17 
18 size_t CompositeRefBaseCandidate::numberOfDaughters() const { return dau.size(); }
19 
20 size_t CompositeRefBaseCandidate::numberOfMothers() const { return 0; }
21 
23  throw cms::Exception("Error") << "can't check overlap internally for CompositeRefBaseCanddate";
24 }
CompositeRefBaseCandidate * clone() const override
returns a clone of the candidate
size_t size_type
Definition: Candidate.h:29
daughters dau
collection of references to daughters
size_t numberOfMothers() const override
number of mothers
bool overlap(const Candidate &) const override
check overlap with another candidate
~CompositeRefBaseCandidate() override
destructor
CompositeRefBaseCandidate()
default constructor
size_t numberOfDaughters() const override
number of daughters
const Candidate * mother(size_type) const override
return mother at a given position, i = 0, ... numberOfMothers() - 1 (read only mode) ...
fixed size matrix
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...