Main Page
Namespaces
Classes
Package Documentation
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"
);
StringObjectFunction< reco::GsfElectron >
GsfEleEBEECut
Definition:
GsfEleEBEECut.cc:6
CutApplicatorBase::ELECTRON
Definition:
CutApplicatorBase.h:47
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
std
Definition:
JetResolutionObject.h:76
EBEECutValuesT< double >
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
StringObjectFunction.h
watchdog.const
const
Definition:
watchdog.py:83
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
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::value
double value(const reco::CandidatePtr &cand) const final
Definition:
GsfEleEBEECut.cc:13
CutApplicatorBase::CandidateType
CandidateType
Definition:
CutApplicatorBase.h:47
edm::ParameterSet
Definition:
ParameterSet.h:36
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:124
cand
Definition:
decayParser.h:34
GsfEleEBEECut::candidateType
CandidateType candidateType() const final
Definition:
GsfEleEBEECut.cc:18
GsfEleEBEECut::cutFormula_
StringObjectFunction< reco::GsfElectron > cutFormula_
Definition:
GsfEleEBEECut.cc:21
GsfEleEBEECut::operator()
result_type operator()(const reco::GsfElectronPtr &cand) const final
Definition:
GsfEleEBEECut.cc:11
CutApplicatorBase.h
Generated for CMSSW Reference Manual by
1.8.11