Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
DataFormats
Candidate
src
CompositePtrCandidate.cc
Go to the documentation of this file.
1
#include "
DataFormats/Candidate/interface/CompositePtrCandidate.h
"
2
#include "
FWCore/Utilities/interface/Exception.h
"
3
4
using namespace
reco
;
5
6
CompositePtrCandidate::~CompositePtrCandidate
() {}
7
8
CompositePtrCandidate
*
CompositePtrCandidate::clone
()
const
{
return
new
CompositePtrCandidate
(*
this
); }
9
10
const
Candidate
*
CompositePtrCandidate::daughter
(
size_type
i
)
const
{
11
return
(
i
<
numberOfDaughters
()) ? &*
dau
[
i
] :
nullptr
;
// i >= 0, since i is unsigned
12
}
13
14
const
Candidate
*
CompositePtrCandidate::mother
(
size_type
i
)
const
{
return
nullptr
; }
15
16
Candidate
*
CompositePtrCandidate::daughter
(
size_type
i
) {
return
nullptr
; }
17
18
size_t
CompositePtrCandidate::numberOfDaughters
()
const
{
return
dau
.size(); }
19
20
size_t
CompositePtrCandidate::numberOfMothers
()
const
{
return
0; }
21
22
size_t
CompositePtrCandidate::numberOfSourceCandidatePtrs
()
const
{
return
numberOfDaughters
(); }
23
24
CandidatePtr
CompositePtrCandidate::sourceCandidatePtr
(
size_type
i
)
const
{
return
daughterPtr
(
i
); }
25
26
bool
CompositePtrCandidate::overlap
(
const
Candidate
& c2)
const
{
27
throw
cms::Exception
(
"Error"
) <<
"can't check overlap internally for CompositePtrCanddate"
;
28
}
mps_fire.i
i
Definition:
mps_fire.py:428
reco::CompositePtrCandidate::mother
const Candidate * mother(size_t i=0) const override
return pointer to mother
Definition:
CompositePtrCandidate.cc:14
reco::CompositePtrCandidate::sourceCandidatePtr
CandidatePtr sourceCandidatePtr(size_type i) const override
Definition:
CompositePtrCandidate.cc:24
reco::CompositePtrCandidate::CompositePtrCandidate
CompositePtrCandidate()
default constructor
Definition:
CompositePtrCandidate.h:24
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:45
CompositePtrCandidate.h
reco::CompositePtrCandidate::dau
daughters dau
collection of references to daughters
Definition:
CompositePtrCandidate.h:79
reco::CompositePtrCandidate::~CompositePtrCandidate
~CompositePtrCandidate() override
destructor
Definition:
CompositePtrCandidate.cc:6
reco::CompositePtrCandidate::numberOfMothers
size_t numberOfMothers() const override
number of mothers
Definition:
CompositePtrCandidate.cc:20
reco::CompositePtrCandidate::numberOfDaughters
size_t numberOfDaughters() const override
number of daughters
Definition:
CompositePtrCandidate.cc:18
edm::Ptr< Candidate >
reco::Candidate
Definition:
Candidate.h:27
Exception
Definition:
hltDiff.cc:246
reco::CompositePtrCandidate
Definition:
CompositePtrCandidate.h:17
reco::CompositePtrCandidate::overlap
bool overlap(const Candidate &) const override
check overlap with another candidate
Definition:
CompositePtrCandidate.cc:26
reco::CompositePtrCandidate::daughter
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode)
Definition:
CompositePtrCandidate.cc:10
Exception.h
reco::Candidate::size_type
size_t size_type
Definition:
Candidate.h:29
reco::CompositePtrCandidate::clone
CompositePtrCandidate * clone() const override
returns a clone of the candidate
Definition:
CompositePtrCandidate.cc:8
reco::CompositePtrCandidate::numberOfSourceCandidatePtrs
size_type numberOfSourceCandidatePtrs() const override
Definition:
CompositePtrCandidate.cc:22
reco::CompositePtrCandidate::daughterPtr
virtual CandidatePtr daughterPtr(size_type i) const
reference to daughter at given position
Definition:
CompositePtrCandidate.h:61
Generated for CMSSW Reference Manual by
1.8.16