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 }
double value(const reco::CandidatePtr &cand) const final
result_type operator()(const reco::GsfElectronPtr &) const final
#define DEFINE_EDM_PLUGIN(factory, type, name)
float full5x5_sigmaIetaIeta() const
Definition: GsfElectron.h:471