CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GsfEleDPhiInCut.cc
Go to the documentation of this file.
4 
6 public:
9  _dPhiInCutValueEB(c.getParameter<double>("dPhiInCutValueEB")),
10  _dPhiInCutValueEE(c.getParameter<double>("dPhiInCutValueEE")),
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 };
23 
26  "GsfEleDPhiInCut");
27 
28 CutApplicatorBase::result_type
30 operator()(const reco::GsfElectronPtr& cand) const{
31  const float dPhiInCutValue =
32  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
34  return std::abs(cand->deltaPhiSuperClusterTrackAtVtx()) < dPhiInCutValue;
35 }
const double _dPhiInCutValueEE
const double _dPhiInCutValueEB
CandidateType candidateType() const overridefinal
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
GsfEleDPhiInCut(const edm::ParameterSet &c)
const double _barrelCutOff
string const
Definition: compareJSON.py:14
result_type operator()(const reco::GsfElectronPtr &) const overridefinal
#define DEFINE_EDM_PLUGIN(factory, type, name)