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
n
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
c
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
src
CommonTools
UtilAlgos
interface
MatchByDR.h
Go to the documentation of this file.
1
#ifndef MatchByDR_h_
2
#define MatchByDR_h_
3
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
#include "
CommonTools/UtilAlgos/interface/DeltaR.h
"
9
10
namespace
reco
{
11
template
<
typename
T1,
typename
T2>
12
class
MatchByDR
{
13
public
:
14
MatchByDR
(
const
edm::ParameterSet
&
cfg
) :
maxDR_
(
cfg
.getParameter<double>(
"maxDeltaR"
)) {}
15
bool
operator()
(
const
T1&
t1
,
const
T2&
t2
)
const
{
return
deltaR_
(
t1
,
t2
) <
maxDR_
; }
16
17
private
:
18
DeltaR<T1, T2>
deltaR_
;
19
double
maxDR_
;
20
};
21
}
// namespace reco
22
23
#endif
DeltaR
Definition:
deltaR.h:58
reco::MatchByDR
Definition:
MatchByDR.h:12
DeltaR.h
ParameterSet.h
RandomServiceHelper.t1
t1
Definition:
RandomServiceHelper.py:256
looper.cfg
cfg
Definition:
looper.py:296
reco::MatchByDR::MatchByDR
MatchByDR(const edm::ParameterSet &cfg)
Definition:
MatchByDR.h:14
reco
fixed size matrix
Definition:
AlignmentAlgorithmBase.h:46
reco::MatchByDR::maxDR_
double maxDR_
Definition:
MatchByDR.h:19
edm::ParameterSet
Definition:
ParameterSet.h:48
reco::MatchByDR::deltaR_
DeltaR< T1, T2 > deltaR_
Definition:
MatchByDR.h:18
reco::MatchByDR::operator()
bool operator()(const T1 &t1, const T2 &t2) const
Definition:
MatchByDR.h:15
RandomServiceHelper.t2
t2
Definition:
RandomServiceHelper.py:257
Generated for CMSSW Reference Manual by
1.8.14