CMS 3D CMS Logo

PhoSingleTowerHadOverEmCut.cc
Go to the documentation of this file.
3 
5 public:
8  _hadronicOverEMCutValueEB(c.getParameter<double>("hadronicOverEMCutValueEB")),
9  _hadronicOverEMCutValueEE(c.getParameter<double>("hadronicOverEMCutValueEE")),
10  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {}
11 
12  result_type operator()(const reco::PhotonPtr&) const final;
13 
14  double value(const reco::CandidatePtr& cand) const final;
15 
17 
18 private:
20 };
21 
23 
25  const float hadronicOverEMCutValue =
27 
28  return cand->hadTowOverEm() < hadronicOverEMCutValue;
29 }
30 
32  reco::PhotonPtr pho(cand);
33  return pho->hadTowOverEm();
34 }
PhoSingleTowerHadOverEmCut::PhoSingleTowerHadOverEmCut
PhoSingleTowerHadOverEmCut(const edm::ParameterSet &c)
Definition: PhoSingleTowerHadOverEmCut.cc:6
CutApplicatorBase::PHOTON
Definition: CutApplicatorBase.h:47
PhoSingleTowerHadOverEmCut::operator()
result_type operator()(const reco::PhotonPtr &) const final
Definition: PhoSingleTowerHadOverEmCut.cc:24
watchdog.const
const
Definition: watchdog.py:83
PhoSingleTowerHadOverEmCut::candidateType
CandidateType candidateType() const final
Definition: PhoSingleTowerHadOverEmCut.cc:16
candidate_functions::CandidateCut::result_type
bool result_type
Definition: CandidateCut.h:11
Photon.h
PhoSingleTowerHadOverEmCut::_hadronicOverEMCutValueEB
const float _hadronicOverEMCutValueEB
Definition: PhoSingleTowerHadOverEmCut.cc:19
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
edm::ParameterSet
Definition: ParameterSet.h:47
CutApplicatorBase::CandidateType
CandidateType
Definition: CutApplicatorBase.h:47
edmplugin::PluginFactory
Definition: PluginFactory.h:34
cand
Definition: decayParser.h:32
PhoSingleTowerHadOverEmCut::_hadronicOverEMCutValueEE
const float _hadronicOverEMCutValueEE
Definition: PhoSingleTowerHadOverEmCut.cc:19
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
edm::Ptr
Definition: AssociationVector.h:31
CutApplicatorBase
Definition: CutApplicatorBase.h:45
PhoSingleTowerHadOverEmCut
Definition: PhoSingleTowerHadOverEmCut.cc:4
PhoSingleTowerHadOverEmCut::_barrelCutOff
const float _barrelCutOff
Definition: PhoSingleTowerHadOverEmCut.cc:19
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
CutApplicatorBase.h
PhoSingleTowerHadOverEmCut::value
double value(const reco::CandidatePtr &cand) const final
Definition: PhoSingleTowerHadOverEmCut.cc:31