CMS 3D CMS Logo

GsfEleDEtaInCut.cc
Go to the documentation of this file.
3 
5 public:
8  _dEtaInCutValueEB(c.getParameter<double>("dEtaInCutValueEB")),
9  _dEtaInCutValueEE(c.getParameter<double>("dEtaInCutValueEE")),
10  _barrelCutOff(c.getParameter<double>("barrelCutOff")){
11  }
12 
13  result_type operator()(const reco::GsfElectronPtr&) const override final;
14 
15  double value(const reco::CandidatePtr& cand) const override final;
16 
17  CandidateType candidateType() const override final {
18  return ELECTRON;
19  }
20 
21 private:
23 };
24 
27  "GsfEleDEtaInCut");
28 
29 CutApplicatorBase::result_type
32  const float dEtaInCutValue =
33  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
35  return std::abs(cand->deltaEtaSuperClusterTrackAtVtx()) < dEtaInCutValue;
36 }
37 
39  reco::GsfElectronPtr ele(cand);
41 }
double value(const reco::CandidatePtr &cand) const override final
const double _dEtaInCutValueEE
float deltaEtaSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:249
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:184
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
GsfEleDEtaInCut(const edm::ParameterSet &c)
result_type operator()(const reco::GsfElectronPtr &) const override final
const double _barrelCutOff
CandidateType candidateType() const override final
const double _dEtaInCutValueEB
#define DEFINE_EDM_PLUGIN(factory, type, name)