CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
24  : CutApplicatorBase(params),
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 
36  reco::GsfElectronPtr ele(cand);
37  return ele->full5x5_sigmaIetaIeta();
38 }
const edm::EventSetup & c
double value(const reco::CandidatePtr &cand) const final
result_type operator()(const reco::GsfElectronPtr &) const final
#define DEFINE_EDM_PLUGIN(factory, type, name)