test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PhoFull5x5SigmaIEtaIEtaCut.cc
Go to the documentation of this file.
3 
5 public:
7 
8  result_type operator()(const reco::PhotonPtr&) const override final;
9 
10  double value(const reco::CandidatePtr& cand) const override final;
11 
12  CandidateType candidateType() const override final {
13  return PHOTON;
14  }
15 
16 private:
17  float _cutValueEB;
18  float _cutValueEE;
20 };
21 
24  "PhoFull5x5SigmaIEtaIEtaCut");
25 
28  _cutValueEB(c.getParameter<double>("cutValueEB")),
29  _cutValueEE(c.getParameter<double>("cutValueEE")),
30  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {
31 }
32 
33 CutApplicatorBase::result_type
35 operator()(const reco::PhotonPtr& cand) const{
36 
37  // Figure out the cut value
38  const float full5x5SigmaIEtaIEtaCutValue =
39  ( std::abs(cand->superCluster()->eta()) < _barrelCutOff ?
41 
42  // Apply the cut and return the result
43  return cand->full5x5_sigmaIetaIeta() < full5x5SigmaIEtaIEtaCutValue;
44 }
45 
47 value(const reco::CandidatePtr& cand) const {
48  reco::PhotonPtr pho(cand);
49  return pho->full5x5_sigmaIetaIeta();
50 }
result_type operator()(const reco::PhotonPtr &) const overridefinal
double value(const reco::CandidatePtr &cand) const overridefinal
CandidateType candidateType() const overridefinal
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
PhoFull5x5SigmaIEtaIEtaCut(const edm::ParameterSet &c)
string const
Definition: compareJSON.py:14
#define DEFINE_EDM_PLUGIN(factory, type, name)