CMS 3D CMS Logo

CompositeRefBaseCandidate.cc
Go to the documentation of this file.
3 
4 using namespace reco;
5 
7 }
8 
10  return new CompositeRefBaseCandidate( * this );
11 }
12 
14  return ( i < numberOfDaughters() ) ? & * dau[ i ] : nullptr; // i >= 0, since i is unsigned
15 }
16 
18  return nullptr;
19 }
20 
22  return nullptr;
23 }
24 
26  return dau.size();
27 }
28 
30  return 0;
31 }
32 
34  throw cms::Exception( "Error" ) << "can't check overlap internally for CompositeRefBaseCanddate";
35 }
36 
size_t size_type
Definition: Candidate.h:30
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()
default constructor
bool overlap(const Candidate &) const override
check overlap with another candidate
size_t numberOfDaughters() const override
number of daughters
fixed size matrix
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