test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ] : 0; // i >= 0, since i is unsigned
15 }
16 
18  return 0;
19 }
20 
22  return 0;
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 }
int i
Definition: DBlmapReader.cc:9
CompositePtrCandidate()
default constructor
size_t size_type
Definition: Candidate.h:30
CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
daughters dau
collection of references to daughters
virtual CompositePtrCandidate * clone() const
returns a clone of the candidate
virtual size_t numberOfDaughters() const
number of daughters
virtual CandidatePtr sourceCandidatePtr(size_type i) const
virtual size_type numberOfSourceCandidatePtrs() const
virtual const Candidate * mother(size_t i=0) const
return pointer to mother
virtual ~CompositePtrCandidate()
destructor
virtual bool overlap(const Candidate &) const
check overlap with another candidate
virtual size_t numberOfMothers() const
number of mothers
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...