test
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  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
32 operator()(const reco::GsfElectronPtr& cand) const{
33  const float dPhiInCutValue =
34  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
36  return std::abs(cand->deltaPhiSuperClusterTrackAtVtx()) < dPhiInCutValue;
37 }
38 
39 double GsfEleDPhiInCut::value(const reco::CandidatePtr& cand) const {
40  reco::GsfElectronPtr ele(cand);
41  return std::abs(ele->deltaPhiSuperClusterTrackAtVtx());
42 }
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
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
string const
Definition: compareJSON.py:14
result_type operator()(const reco::GsfElectronPtr &) const overridefinal
#define DEFINE_EDM_PLUGIN(factory, type, name)
double value(const reco::CandidatePtr &cand) const overridefinal