CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GsfEleDEtaInSeedCut.cc
Go to the documentation of this file.
3 
5 public:
8  _dEtaInSeedCutValueEB(c.getParameter<double>("dEtaInSeedCutValueEB")),
9  _dEtaInSeedCutValueEE(c.getParameter<double>("dEtaInSeedCutValueEE")),
10  _barrelCutOff(c.getParameter<double>("barrelCutOff")){
11  }
12 
13  result_type operator()(const reco::GsfElectronPtr&) const override final;
14 
15  CandidateType candidateType() const override final {
16  return ELECTRON;
17  }
18 
19 private:
21 };
22 
25  "GsfEleDEtaInSeedCut");
26 
27 CutApplicatorBase::result_type
29 operator()(const reco::GsfElectronPtr& cand) const{
30  const float dEtaInSeedCutValue =
31  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
33  return std::abs(cand->deltaEtaSeedClusterTrackAtVtx()) < dEtaInSeedCutValue;
34 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const double _dEtaInSeedCutValueEB
const double _dEtaInSeedCutValueEE
GsfEleDEtaInSeedCut(const edm::ParameterSet &c)
result_type operator()(const reco::GsfElectronPtr &) const overridefinal
string const
Definition: compareJSON.py:14
#define DEFINE_EDM_PLUGIN(factory, type, name)
CandidateType candidateType() const overridefinal