CMS 3D CMS Logo

GsfEleFull5x5SigmaIEtaIEtaCut.cc
Go to the documentation of this file.
3 
5 public:
7 
8  result_type operator()(const reco::GsfElectronPtr&) const final;
9 
10  double value(const reco::CandidatePtr& cand) const final;
11 
13 
14 private:
18 };
19 
21 
24  _full5x5SigmaIEtaIEtaCutValueEB(c.getParameter<double>("full5x5SigmaIEtaIEtaCutValueEB")),
25  _full5x5SigmaIEtaIEtaCutValueEE(c.getParameter<double>("full5x5SigmaIEtaIEtaCutValueEE")),
26  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {}
27 
29  // Figure out the cut value
30  const float full5x5SigmaIEtaIEtaCutValue =
31  (std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ? _full5x5SigmaIEtaIEtaCutValueEB
33 
34  // Apply the cut and return the result
35  return cand->full5x5_sigmaIetaIeta() < full5x5SigmaIEtaIEtaCutValue;
36 }
37 
40  return ele->full5x5_sigmaIetaIeta();
41 }
result_type operator()(const reco::GsfElectronPtr &) const final
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
CandidateType candidateType() const final
double value(const reco::CandidatePtr &cand) const final
#define DEFINE_EDM_PLUGIN(factory, type, name)
float full5x5_sigmaIetaIeta() const
Definition: GsfElectron.h:471
GsfEleFull5x5SigmaIEtaIEtaCut(const edm::ParameterSet &c)