CMS 3D CMS Logo

GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc
Go to the documentation of this file.
5 
7 public:
9 
10  result_type operator()(const reco::GsfElectronPtr&) const final;
11 
12  double value(const reco::CandidatePtr& cand) const final;
13 
15 
16 private:
19 };
20 
21 DEFINE_EDM_PLUGIN(CutApplicatorFactory, GsfEleFull5x5SigmaIEtaIEtaWithSatCut, "GsfEleFull5x5SigmaIEtaIEtaWithSatCut");
22 
25  maxSigmaIEtaIEtaCut_(params, "maxSigmaIEtaIEta"),
26  maxNrSatCrysIn5x5Cut_(params, "maxNrSatCrysIn5x5") {}
27 
29  if (cand->nSaturatedXtals() > maxNrSatCrysIn5x5Cut_(cand))
30  return true;
31  else
32  return cand->full5x5_sigmaIetaIeta() < maxSigmaIEtaIEtaCut_(cand);
33 }
34 
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