Main Page
Namespaces
Classes
Package Documentation
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
) :
6
CutApplicatorBase
(c),
7
_maxEta
(c.getParameter<double>(
"maxEta"
)) { }
8
9
double
value
(
const
reco::CandidatePtr
&
cand
)
const
final
{
10
return
std::abs
(
cand
->eta());
11
}
12
13
result_type
asCandidate
(
const
argument_type
&
cand
)
const
final
{
14
return
std::abs
(
cand
->eta()) <
_maxEta
;
15
}
16
17
private
:
18
const
double
_maxEta
;
19
};
20
21
DEFINE_EDM_PLUGIN
(
CutApplicatorFactory
,
MaxAbsEtaCut
,
"MaxAbsEtaCut"
);
22
MaxAbsEtaCut::value
double value(const reco::CandidatePtr &cand) const final
Definition:
MaxAbsEtaCut.cc:9
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:44
MaxAbsEtaCut
Definition:
MaxAbsEtaCut.cc:3
MaxAbsEtaCut::MaxAbsEtaCut
MaxAbsEtaCut(const edm::ParameterSet &c)
Definition:
MaxAbsEtaCut.cc:5
edmplugin::PluginFactory
Definition:
PluginFactory.h:33
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:18
edm::ParameterSet
Definition:
ParameterSet.h:36
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:121
cand
Definition:
decayParser.h:34
MaxAbsEtaCut::asCandidate
result_type asCandidate(const argument_type &cand) const final
Definition:
MaxAbsEtaCut.cc:13
CutApplicatorBase.h
Generated for CMSSW Reference Manual by
1.8.11