RecoEgamma
ElectronIdentification
plugins
cuts
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc
Go to the documentation of this file.
1
#include "
PhysicsTools/SelectorUtils/interface/CutApplicatorBase.h
"
2
#include "
DataFormats/EgammaCandidates/interface/GsfElectron.h
"
3
#include "
DataFormats/Common/interface/ValueMap.h
"
4
#include "
RecoEgamma/EgammaTools/interface/EBEECutValues.h
"
5
6
class
GsfEleFull5x5SigmaIEtaIEtaWithSatCut
:
public
CutApplicatorBase
{
7
public
:
8
GsfEleFull5x5SigmaIEtaIEtaWithSatCut
(
const
edm::ParameterSet
&
c
);
9
10
result_type
operator()
(
const
reco::GsfElectronPtr
&)
const
final
;
11
12
double
value
(
const
reco::CandidatePtr
&
cand
)
const
final
;
13
14
CandidateType
candidateType
()
const
final {
return
ELECTRON
; }
15
16
private
:
17
EBEECutValues
maxSigmaIEtaIEtaCut_
;
18
EBEECutValuesInt
maxNrSatCrysIn5x5Cut_
;
19
};
20
21
DEFINE_EDM_PLUGIN
(
CutApplicatorFactory
,
GsfEleFull5x5SigmaIEtaIEtaWithSatCut
,
"GsfEleFull5x5SigmaIEtaIEtaWithSatCut"
);
22
23
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::GsfEleFull5x5SigmaIEtaIEtaWithSatCut
(
const
edm::ParameterSet
&
params
)
24
:
CutApplicatorBase
(
params
),
25
maxSigmaIEtaIEtaCut_(
params
,
"maxSigmaIEtaIEta"
),
26
maxNrSatCrysIn5x5Cut_(
params
,
"maxNrSatCrysIn5x5"
) {}
27
28
CutApplicatorBase::result_type
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::operator()
(
const
reco::GsfElectronPtr
&
cand
)
const
{
29
if
(
cand
->nSaturatedXtals() >
maxNrSatCrysIn5x5Cut_
(
cand
))
30
return
true
;
31
else
32
return
cand
->full5x5_sigmaIetaIeta() <
maxSigmaIEtaIEtaCut_
(
cand
);
33
}
34
35
double
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::value
(
const
reco::CandidatePtr
&
cand
)
const
{
36
reco::GsfElectronPtr
ele(
cand
);
37
return
ele->
full5x5_sigmaIetaIeta
();
38
}
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::candidateType
CandidateType candidateType() const final
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:14
CalibrationSummaryClient_cfi.params
params
Definition:
CalibrationSummaryClient_cfi.py:14
EBEECutValues.h
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::maxSigmaIEtaIEtaCut_
EBEECutValues maxSigmaIEtaIEtaCut_
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:17
watchdog.const
const
Definition:
watchdog.py:83
candidate_functions::CandidateCut::result_type
bool result_type
Definition:
CandidateCut.h:11
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::maxNrSatCrysIn5x5Cut_
EBEECutValuesInt maxNrSatCrysIn5x5Cut_
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:18
GsfElectron.h
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:124
GsfEleFull5x5SigmaIEtaIEtaWithSatCut
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:6
edm::ParameterSet
Definition:
ParameterSet.h:47
CutApplicatorBase::CandidateType
CandidateType
Definition:
CutApplicatorBase.h:47
reco::GsfElectron::full5x5_sigmaIetaIeta
float full5x5_sigmaIetaIeta() const
Definition:
GsfElectron.h:443
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
cand
Definition:
decayParser.h:32
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::operator()
result_type operator()(const reco::GsfElectronPtr &) const final
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:28
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::value
double value(const reco::CandidatePtr &cand) const final
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:35
HltBtagPostValidation_cff.c
c
Definition:
HltBtagPostValidation_cff.py:31
edm::Ptr< reco::GsfElectron >
ValueMap.h
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
EBEECutValuesT< double >
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::GsfEleFull5x5SigmaIEtaIEtaWithSatCut
GsfEleFull5x5SigmaIEtaIEtaWithSatCut(const edm::ParameterSet &c)
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:23
CutApplicatorBase.h
CutApplicatorBase::ELECTRON
Definition:
CutApplicatorBase.h:47
Generated for CMSSW Reference Manual by
1.8.16