CMS 3D CMS Logo

GsfEleHadronicOverEMCut.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::GsfElectronPtr&) const final;
14 
15  double value(const reco::CandidatePtr& cand) const final;
16 
17  CandidateType candidateType() const final {
18  return ELECTRON;
19  }
20 
21 private:
23 };
24 
27  "GsfEleHadronicOverEMCut");
28 
29 CutApplicatorBase::result_type
32  const float hadronicOverEMCutValue =
33  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
35  return cand->hadronicOverEm() < hadronicOverEMCutValue;
36 }
37 
39  reco::GsfElectronPtr ele(cand);
40  return ele->hadronicOverEm();
41 }
CandidateType candidateType() const final
float hadronicOverEm() const
Definition: GsfElectron.h:491
GsfEleHadronicOverEMCut(const edm::ParameterSet &c)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
result_type operator()(const reco::GsfElectronPtr &) const final
double value(const reco::CandidatePtr &cand) const final
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:184
#define DEFINE_EDM_PLUGIN(factory, type, name)