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
PhysicsTools
SelectorUtils
plugins
MaxAbsEtaCut.cc
Go to the documentation of this file.
1
#include "
PhysicsTools/SelectorUtils/interface/CutApplicatorBase.h
"
2
3
class
MaxAbsEtaCut
:
public
CutApplicatorBase
{
4
public
:
5
MaxAbsEtaCut
(
const
edm::ParameterSet
&
c
) :
CutApplicatorBase
(
c
),
_maxEta
(
c
.getParameter<double>(
"maxEta"
)) {}
6
7
double
value
(
const
reco::CandidatePtr
&
cand
)
const
final
{
return
std::abs
(
cand
->eta()); }
8
9
result_type
asCandidate
(
const
argument_type
&
cand
)
const
final
{
return
std::abs
(
cand
->eta()) <
_maxEta
; }
10
11
private
:
12
const
double
_maxEta
;
13
};
14
15
DEFINE_EDM_PLUGIN
(
CutApplicatorFactory
,
MaxAbsEtaCut
,
"MaxAbsEtaCut"
);
MaxAbsEtaCut
Definition:
MaxAbsEtaCut.cc:3
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
MaxAbsEtaCut::MaxAbsEtaCut
MaxAbsEtaCut(const edm::ParameterSet &c)
Definition:
MaxAbsEtaCut.cc:5
edmplugin::PluginFactory
Definition:
PluginFactory.h:35
candidate_functions::CandidateCut::result_type
bool result_type
Definition:
CandidateCut.h:11
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
edm::Ptr< Candidate >
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
MaxAbsEtaCut::_maxEta
const double _maxEta
Definition:
MaxAbsEtaCut.cc:12
MaxAbsEtaCut::value
double value(const reco::CandidatePtr &cand) const final
Definition:
MaxAbsEtaCut.cc:7
edm::ParameterSet
Definition:
ParameterSet.h:47
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:123
cand
Definition:
decayParser.h:32
MaxAbsEtaCut::asCandidate
result_type asCandidate(const argument_type &cand) const final
Definition:
MaxAbsEtaCut.cc:9
CutApplicatorBase.h
Generated for CMSSW Reference Manual by
1.8.14