test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
14  result_type operator()(const reco::GsfElectronPtr&) const override final;
15 
16  CandidateType candidateType() const override final {
17  return ELECTRON;
18  }
19 
20 private:
22  const double _barrelCutOff;
23 };
24 
27  "GsfEleMissingHitsCut");
28 
29 CutApplicatorBase::result_type
31 operator()(const reco::GsfElectronPtr& cand) const{
32  const unsigned maxMissingHits =
33  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
35  const unsigned mHits =
36  cand->gsfTrack()->trackerExpectedHitsInner().numberOfHits();
37  return mHits <= maxMissingHits;
38 }
CandidateType candidateType() const overridefinal
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
result_type operator()(const reco::GsfElectronPtr &) const overridefinal
const unsigned _maxMissingHitsEB
GsfEleMissingHitsCut(const edm::ParameterSet &c)
string const
Definition: compareJSON.py:14
#define DEFINE_EDM_PLUGIN(factory, type, name)
const unsigned _maxMissingHitsEE