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::operator()
result_type operator()(const reco::GsfElectronPtr &cand) const final
Definition:
GsfEleEBEECut.cc:11
StringObjectFunction< reco::GsfElectron >
GsfEleEBEECut
Definition:
GsfEleEBEECut.cc:6
CutApplicatorBase::ELECTRON
Definition:
CutApplicatorBase.h:47
runTheMatrix.const
const
Definition:
runTheMatrix.py:341
std
Definition:
JetResolutionObject.h:76
EBEECutValuesT< double >
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
StringObjectFunction.h
edmplugin::PluginFactory
Definition:
PluginFactory.h:35
candidate_functions::CandidateCut::result_type
bool result_type
Definition:
CandidateCut.h:11
GsfEleEBEECut::GsfEleEBEECut
GsfEleEBEECut(const edm::ParameterSet &c)
Definition:
GsfEleEBEECut.cc:8
edm::Ptr< reco::GsfElectron >
GsfEleEBEECut::cutValue_
const EBEECutValuesT< double > cutValue_
Definition:
GsfEleEBEECut.cc:22
GsfElectron.h
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
EBEECutValues.h
GsfEleEBEECut::candidateType
CandidateType candidateType() const final
Definition:
GsfEleEBEECut.cc:18
CutApplicatorBase::CandidateType
CandidateType
Definition:
CutApplicatorBase.h:47
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
GsfEleEBEECut::cutFormula_
StringObjectFunction< reco::GsfElectron > cutFormula_
Definition:
GsfEleEBEECut.cc:21
GsfEleEBEECut::value
double value(const reco::CandidatePtr &cand) const final
Definition:
GsfEleEBEECut.cc:13
CutApplicatorBase.h
Generated for CMSSW Reference Manual by
1.8.14