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  result_type operator()(const reco::GsfElectronPtr&) const final;
14 
15  double value(const reco::CandidatePtr& cand) const final;
16 
18 
19 private:
21 };
22 
24 
26  const float dPhiInCutValue =
27  (std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ? _dPhiInCutValueEB : _dPhiInCutValueEE);
28  return std::abs(cand->deltaPhiSuperClusterTrackAtVtx()) < dPhiInCutValue;
29 }
30 
32  reco::GsfElectronPtr ele(cand);
34 }
const double _dPhiInCutValueEE
const double _dPhiInCutValueEB
CandidateType candidateType() const final
float deltaPhiSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:228
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:155
#define DEFINE_EDM_PLUGIN(factory, type, name)
result_type operator()(const reco::GsfElectronPtr &) const final