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