CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CompositeRefCandidate.cc
Go to the documentation of this file.
3 
4 using namespace reco;
5 
7 }
8 
10  return new CompositeRefCandidate( * this );
11 }
12 
15 }
16 
19 }
20 
22  return iterator( new iterator_imp_specific );
23 }
24 
26  return iterator( new iterator_imp_specific );
27 }
28 
30  return ( i < numberOfDaughters() ) ? & * dau[ i ] : 0; // i >= 0, since i is unsigned
31 }
32 
34  return ( i < numberOfMothers() ) ? & * mom[ i ] : 0; // i >= 0, since i is unsigned
35 }
36 
38  return 0;
39 }
40 
42  return dau.size();
43 }
44 
46  return mom.size();
47 }
48 
50  throw cms::Exception( "Error" ) << "can't check overlap internally for CompositeRefCanddate";
51 }
int i
Definition: DBlmapReader.cc:9
size_t size_type
Definition: Candidate.h:34
virtual const_iterator begin() const
first daughter const_iterator
candidate::const_iterator const_iterator
Definition: Candidate.h:35
virtual CompositeRefCandidate * clone() const
returns a clone of the candidate
const_iterator end() const
Termination of iteration.
Definition: RefVector.h:249
const_iterator begin() const
Initialize an iterator over the RefVector.
Definition: RefVector.h:244
tuple c2
Definition: counter.py:145
daughters dau
collection of references to daughters
virtual const Candidate * mother(size_t i=0) const
return pointer to mother
daughters mom
collection of references to mothers
virtual size_t numberOfMothers() const
number of mothers (zero or one in most of but not all the cases)
candidate::iterator iterator
Definition: Candidate.h:36
virtual size_t numberOfDaughters() const
number of daughters
virtual const_iterator end() const
last daughter const_iterator
virtual bool overlap(const Candidate &) const
check overlap with another candidate
size_type size() const
Size of the RefVector.
Definition: RefVector.h:89
virtual const Candidate * daughter(size_type) const
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
virtual ~CompositeRefCandidate()
destructor
candidate::const_iterator_imp_specific< daughters > const_iterator_imp_specific
const iterator implementation
CompositeRefCandidate()
default constructor