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 
13  result_type operator()(const reco::PhotonPtr&) const final;
14 
15  double value(const reco::CandidatePtr& cand) const final;
16 
17  CandidateType candidateType() const final {
18  return PHOTON;
19  }
20 
21 private:
23 };
24 
27  "PhoSingleTowerHadOverEmCut");
28 
29 CutApplicatorBase::result_type
32  const float hadronicOverEMCutValue =
33  ( std::abs(cand->superCluster()->eta()) < _barrelCutOff ?
35 
36  return cand->hadTowOverEm() < hadronicOverEMCutValue;
37 }
38 
40 value(const reco::CandidatePtr& cand) const {
41  reco::PhotonPtr pho(cand);
42  return pho->hadTowOverEm();
43 }
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
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
float hadTowOverEm() const
the ration of hadronic energy in towers behind the BCs in the SC and the SC energy ...
Definition: Photon.h:211
CandidateType candidateType() const final
#define DEFINE_EDM_PLUGIN(factory, type, name)
PhoSingleTowerHadOverEmCut(const edm::ParameterSet &c)