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{
34  const unsigned maxMissingHits =
35  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
37  const unsigned mHits =
38  cand->gsfTrack()->hitPattern().numberOfHits(missingHitType);
39  return mHits <= maxMissingHits;
40 }
#define constexpr
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