CMS 3D CMS Logo

PhoSingleTowerHadOverEmCut.cc
Go to the documentation of this file.
3 
5 public:
8  _hadronicOverEMCutValueEB(c.getParameter<double>("hadronicOverEMCutValueEB")),
9  _hadronicOverEMCutValueEE(c.getParameter<double>("hadronicOverEMCutValueEE")),
10  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {}
11 
12  result_type operator()(const reco::PhotonPtr&) const final;
13 
14  double value(const reco::CandidatePtr& cand) const final;
15 
17 
18 private:
20 };
21 
23 
25  const float hadronicOverEMCutValue =
27 
28  return cand->hadTowOverEm() < hadronicOverEMCutValue;
29 }
30 
32  reco::PhotonPtr pho(cand);
33  return pho->hadTowOverEm();
34 }
double value(const reco::CandidatePtr &cand) const final
result_type operator()(const reco::PhotonPtr &) const final
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
CandidateType candidateType() const final
#define DEFINE_EDM_PLUGIN(factory, type, name)
PhoSingleTowerHadOverEmCut(const edm::ParameterSet &c)