CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PhoFull5x5SigmaIEtaIEtaCut.cc
Go to the documentation of this file.
3 
5 public:
7 
8  result_type operator()(const reco::PhotonPtr&) const final;
9 
10  double value(const reco::CandidatePtr& cand) const final;
11 
13 
14 private:
15  float _cutValueEB;
16  float _cutValueEE;
18 };
19 
21 
23  : CutApplicatorBase(c),
24  _cutValueEB(c.getParameter<double>("cutValueEB")),
25  _cutValueEE(c.getParameter<double>("cutValueEE")),
26  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {}
27 
29  // Figure out the cut value
30  const float full5x5SigmaIEtaIEtaCutValue =
31  (std::abs(cand->superCluster()->eta()) < _barrelCutOff ? _cutValueEB : _cutValueEE);
32 
33  // Apply the cut and return the result
34  return cand->full5x5_sigmaIetaIeta() < full5x5SigmaIEtaIEtaCutValue;
35 }
36 
38  reco::PhotonPtr pho(cand);
39  return pho->full5x5_sigmaIetaIeta();
40 }
const edm::EventSetup & c
result_type operator()(const reco::PhotonPtr &) const final
CandidateType candidateType() const final
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
PhoFull5x5SigmaIEtaIEtaCut(const edm::ParameterSet &c)
double value(const reco::CandidatePtr &cand) const final
#define DEFINE_EDM_PLUGIN(factory, type, name)