RecoEgamma
ElectronIdentification
plugins
cuts
GsfEleEBEECut.cc
Go to the documentation of this file.
1
#include "
PhysicsTools/SelectorUtils/interface/CutApplicatorBase.h
"
2
#include "
DataFormats/EgammaCandidates/interface/GsfElectron.h
"
3
#include "
CommonTools/Utils/interface/StringObjectFunction.h
"
4
#include "
RecoEgamma/EgammaTools/interface/EBEECutValues.h
"
5
6
class
GsfEleEBEECut
:
public
CutApplicatorBase
{
7
public
:
8
GsfEleEBEECut
(
const
edm::ParameterSet
&
c
)
9
:
CutApplicatorBase
(
c
),
cutFormula_
(
c
.getParameter<
std
::
string
>(
"cutString"
)),
cutValue_
(
c
,
"cutValue"
) {}
10
11
result_type
operator()
(
const
reco::GsfElectronPtr
&
cand
)
const
final
{
return
cutFormula_
(*
cand
) <
cutValue_
(
cand
); }
12
13
double
value
(
const
reco::CandidatePtr
&
cand
)
const
final
{
14
reco::GsfElectronPtr
ele(
cand
);
15
return
cutFormula_
(*ele);
16
}
17
18
CandidateType
candidateType
()
const
final {
return
ELECTRON
; }
19
20
private
:
21
StringObjectFunction<reco::GsfElectron>
cutFormula_
;
22
const
EBEECutValuesT<double>
cutValue_
;
23
};
24
25
DEFINE_EDM_PLUGIN
(
CutApplicatorFactory
,
GsfEleEBEECut
,
"GsfEleEBEECut"
);
GsfEleEBEECut::cutFormula_
StringObjectFunction< reco::GsfElectron > cutFormula_
Definition:
GsfEleEBEECut.cc:21
StringObjectFunction< reco::GsfElectron >
GsfEleEBEECut::value
double value(const reco::CandidatePtr &cand) const final
Definition:
GsfEleEBEECut.cc:13
EBEECutValues.h
GsfEleEBEECut::candidateType
CandidateType candidateType() const final
Definition:
GsfEleEBEECut.cc:18
watchdog.const
const
Definition:
watchdog.py:83
GsfEleEBEECut::cutValue_
const EBEECutValuesT< double > cutValue_
Definition:
GsfEleEBEECut.cc:22
candidate_functions::CandidateCut::result_type
bool result_type
Definition:
CandidateCut.h:11
GsfElectron.h
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:124
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
GsfEleEBEECut::operator()
result_type operator()(const reco::GsfElectronPtr &cand) const final
Definition:
GsfEleEBEECut.cc:11
edm::ParameterSet
Definition:
ParameterSet.h:47
CutApplicatorBase::CandidateType
CandidateType
Definition:
CutApplicatorBase.h:47
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
cand
Definition:
decayParser.h:32
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
edm::Ptr< reco::GsfElectron >
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
std
Definition:
JetResolutionObject.h:76
EBEECutValuesT< double >
GsfEleEBEECut::GsfEleEBEECut
GsfEleEBEECut(const edm::ParameterSet &c)
Definition:
GsfEleEBEECut.cc:8
CutApplicatorBase.h
StringObjectFunction.h
CutApplicatorBase::ELECTRON
Definition:
CutApplicatorBase.h:47
GsfEleEBEECut
Definition:
GsfEleEBEECut.cc:6
Generated for CMSSW Reference Manual by
1.8.16