CMS 3D CMS Logo

GsfEleMissingHitsCut.cc
Go to the documentation of this file.
4 
6 public:
9  _maxMissingHitsEB(c.getParameter<unsigned>("maxMissingHitsEB")),
10  _maxMissingHitsEE(c.getParameter<unsigned>("maxMissingHitsEE")),
11  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {}
12 
13  result_type operator()(const reco::GsfElectronPtr&) const final;
14 
15  double value(const reco::CandidatePtr& cand) const final;
16 
18 
19 private:
21  const double _barrelCutOff;
22 };
23 
25 
27  auto maxMissingHits =
28  (std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ? _maxMissingHitsEB : _maxMissingHitsEE);
29  return cand->gsfTrack()->missingInnerHits() <= maxMissingHits;
30 }
31 
34  return ele->gsfTrack()->missingInnerHits();
35 }
result_type operator()(const reco::GsfElectronPtr &) const final
CandidateType candidateType() const final
double value(const reco::CandidatePtr &cand) const final
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
Definition: GsfElectron.h:156
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
GsfEleMissingHitsCut(const edm::ParameterSet &c)
#define DEFINE_EDM_PLUGIN(factory, type, name)