28 const float hcalOverEcalCutValue =
29 (
std::abs(cand->superCluster()->eta()) < _barrelCutOff ? _hcalOverEcalCutValueEB : _hcalOverEcalCutValueEE);
32 return cand->hcalOverEcalBc() < hcalOverEcalCutValue;
34 return cand->hcalOverEcal() < hcalOverEcalCutValue;
41 return pho->hcalOverEcalBc();
43 return pho->hcalOverEcal();
const edm::EventSetup & c
CandidateType candidateType() const final
Abs< T >::type abs(const T &t)
result_type operator()(const reco::PhotonPtr &) const final
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
const float _barrelCutOff
const float _hcalOverEcalCutValueEB
const float _hcalOverEcalCutValueEE
#define DEFINE_EDM_PLUGIN(factory, type, name)
double value(const reco::CandidatePtr &cand) const final
PhotonHcalOverEcalCut(const edm::ParameterSet &c)