CMS 3D CMS Logo

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
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 }
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
CandidateType candidateType() const override final
result_type operator()(const reco::PhotonPtr &) const override final
float full5x5_sigmaIetaIeta() const
Definition: Photon.h:237
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
PhoFull5x5SigmaIEtaIEtaCut(const edm::ParameterSet &c)
double value(const reco::CandidatePtr &cand) const override final
#define DEFINE_EDM_PLUGIN(factory, type, name)