CMS 3D CMS Logo

CompositePtrCandidate.cc
Go to the documentation of this file.
3 
4 using namespace reco;
5 
7 }
8 
10  return new CompositePtrCandidate( * 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  return numberOfDaughters();
35 }
36 
38  return daughterPtr(i);
39 }
40 
41 bool CompositePtrCandidate::overlap( const Candidate & c2 ) const {
42  throw cms::Exception( "Error" ) << "can't check overlap internally for CompositePtrCanddate";
43 }
bool overlap(const Candidate &) const override
check overlap with another candidate
CompositePtrCandidate()
default constructor
size_t size_type
Definition: Candidate.h:30
size_type numberOfSourceCandidatePtrs() const override
size_t numberOfDaughters() const override
number of daughters
daughters dau
collection of references to daughters
~CompositePtrCandidate() override
destructor
const Candidate * mother(size_t i=0) const override
return pointer to mother
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
CompositePtrCandidate * clone() const override
returns a clone of the candidate
fixed size matrix
CandidatePtr sourceCandidatePtr(size_type i) const override
size_t numberOfMothers() const override
number of mothers