Main Page
Namespaces
Classes
Package Documentation
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/ElectronIdentification/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 {
15
return
ELECTRON
;
16
}
17
18
private
:
19
EBEECutValues
maxSigmaIEtaIEtaCut_
;
20
EBEECutValuesInt
maxNrSatCrysIn5x5Cut_
;
21
22
};
23
24
DEFINE_EDM_PLUGIN
(
CutApplicatorFactory
,
25
GsfEleFull5x5SigmaIEtaIEtaWithSatCut
,
26
"GsfEleFull5x5SigmaIEtaIEtaWithSatCut"
);
27
28
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::GsfEleFull5x5SigmaIEtaIEtaWithSatCut
(
const
edm::ParameterSet
& params) :
29
CutApplicatorBase
(params),
30
maxSigmaIEtaIEtaCut_
(params,
"maxSigmaIEtaIEta"
),
31
maxNrSatCrysIn5x5Cut_
(params,
"maxNrSatCrysIn5x5"
)
32
{
33
34
}
35
36
37
CutApplicatorBase::result_type
38
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::
39
operator()
(
const
reco::GsfElectronPtr
&
cand
)
const
{
40
41
if
(cand->
nSaturatedXtals
()>
maxNrSatCrysIn5x5Cut_
(cand))
return
true
;
42
else
return
cand->
full5x5_sigmaIetaIeta
() <
maxSigmaIEtaIEtaCut_
(cand);
43
44
}
45
46
double
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::
47
value
(
const
reco::CandidatePtr
&
cand
)
const
{
48
reco::GsfElectronPtr
ele(cand);
49
return
ele->
full5x5_sigmaIetaIeta
();
50
}
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::maxSigmaIEtaIEtaCut_
EBEECutValues maxSigmaIEtaIEtaCut_
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:19
reco::GsfElectron::nSaturatedXtals
float nSaturatedXtals() const
Definition:
GsfElectron.h:512
CutApplicatorBase::ELECTRON
Definition:
CutApplicatorBase.h:48
EnergyCorrector.c
c
Definition:
EnergyCorrector.py:43
GsfEleFull5x5SigmaIEtaIEtaWithSatCut
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:6
EBEECutValuesT< double >
ValueMap.h
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::value
double value(const reco::CandidatePtr &cand) const final
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:47
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::operator()
result_type operator()(const reco::GsfElectronPtr &) const final
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:39
reco::GsfElectron::full5x5_sigmaIetaIeta
float full5x5_sigmaIetaIeta() const
Definition:
GsfElectron.h:455
edmplugin::PluginFactory
Definition:
PluginFactory.h:32
edm::Ptr< reco::GsfElectron >
GsfElectron.h
CutApplicatorBase
Definition:
CutApplicatorBase.h:45
EBEECutValues.h
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::GsfEleFull5x5SigmaIEtaIEtaWithSatCut
GsfEleFull5x5SigmaIEtaIEtaWithSatCut(const edm::ParameterSet &c)
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:28
CutApplicatorBase::CandidateType
CandidateType
Definition:
CutApplicatorBase.h:47
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::candidateType
CandidateType candidateType() const final
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:14
edm::ParameterSet
Definition:
ParameterSet.h:36
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition:
PluginFactory.h:102
cand
Definition:
decayParser.h:34
GsfEleFull5x5SigmaIEtaIEtaWithSatCut::maxNrSatCrysIn5x5Cut_
EBEECutValuesInt maxNrSatCrysIn5x5Cut_
Definition:
GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc:20
CutApplicatorBase.h
Generated for CMSSW Reference Manual by
1.8.11