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 override final;
15 
16  double value(const reco::CandidatePtr& cand) const override final;
17 
18  CandidateType candidateType() const override final {
19  return ELECTRON;
20  }
21 
22 private:
24 };
25 
28  "GsfEleDPhiInCut");
29 
30 CutApplicatorBase::result_type
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
result_type operator()(const reco::GsfElectronPtr &) const override final
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:184
float deltaPhiSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:252
double value(const reco::CandidatePtr &cand) const override final
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
GsfEleDPhiInCut(const edm::ParameterSet &c)
const double _barrelCutOff
CandidateType candidateType() const override final
#define DEFINE_EDM_PLUGIN(factory, type, name)