CMS 3D CMS Logo

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 final;
15 
16  double value(const reco::CandidatePtr& cand) const final;
17 
18  CandidateType candidateType() const final {
19  return ELECTRON;
20  }
21 
22 private:
24 };
25 
28  "GsfEleDPhiInCut");
29 
33  const float dPhiInCutValue =
34  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
36  return std::abs(cand->deltaPhiSuperClusterTrackAtVtx()) < dPhiInCutValue;
37 }
38 
40  reco::GsfElectronPtr ele(cand);
42 }
const double _dPhiInCutValueEE
const double _dPhiInCutValueEB
CandidateType candidateType() const final
float deltaPhiSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:256
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
GsfEleDPhiInCut(const edm::ParameterSet &c)
const double _barrelCutOff
double value(const reco::CandidatePtr &cand) const final
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:185
#define DEFINE_EDM_PLUGIN(factory, type, name)
result_type operator()(const reco::GsfElectronPtr &) const final