CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
PhoHadronicOverEMCut Class Reference
Inheritance diagram for PhoHadronicOverEMCut:
CutApplicatorBase candidate_functions::CandidateCut

Public Member Functions

CandidateType candidateType () const final
 
result_type operator() (const reco::PhotonPtr &) const final
 
 PhoHadronicOverEMCut (const edm::ParameterSet &c)
 
double value (const reco::CandidatePtr &cand) const final
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase ()
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
virtual const std::string & name () const
 
virtual result_type operator() (const argument_type &) const final
 
virtual result_type operator() (const reco::GsfElectronPtr &) const
 
virtual result_type operator() (const pat::ElectronPtr &) const
 
virtual result_type operator() (const pat::PhotonPtr &) const
 
virtual result_type operator() (const reco::MuonPtr &) const
 
virtual result_type operator() (const pat::MuonPtr &) const
 
virtual result_type operator() (const reco::PFTauPtr &) const
 
virtual result_type operator() (const pat::TauPtr &) const
 
CutApplicatorBaseoperator= (const CutApplicatorBase &)=delete
 
virtual ~CutApplicatorBase ()
 Destructor. More...
 
- Public Member Functions inherited from candidate_functions::CandidateCut
 CandidateCut ()
 
virtual ~CandidateCut ()
 

Private Attributes

const float _barrelCutOff
 
const float _hadronicOverEMCutValueEB
 
const float _hadronicOverEMCutValueEE
 

Additional Inherited Members

- Public Types inherited from CutApplicatorBase
enum  CandidateType {
  NONE, ELECTRON, MUON, PHOTON,
  TAU, PATELECTRON, PATMUON, PATPHOTON,
  PATTAU
}
 

Detailed Description

Definition at line 4 of file PhoHadronicOverEMCut.cc.

Constructor & Destructor Documentation

PhoHadronicOverEMCut::PhoHadronicOverEMCut ( const edm::ParameterSet c)
inline

Definition at line 6 of file PhoHadronicOverEMCut.cc.

References operator()(), and value().

6  :
8  _hadronicOverEMCutValueEB(c.getParameter<double>("hadronicOverEMCutValueEB")),
9  _hadronicOverEMCutValueEE(c.getParameter<double>("hadronicOverEMCutValueEE")),
10  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {
11  }
T getParameter(std::string const &) const
const float _hadronicOverEMCutValueEE
const float _hadronicOverEMCutValueEB

Member Function Documentation

CandidateType PhoHadronicOverEMCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 17 of file PhoHadronicOverEMCut.cc.

References CutApplicatorBase::PHOTON.

17  {
18  return PHOTON;
19  }
CutApplicatorBase::result_type PhoHadronicOverEMCut::operator() ( const reco::PhotonPtr cand) const
finalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 31 of file PhoHadronicOverEMCut.cc.

References _barrelCutOff, _hadronicOverEMCutValueEB, _hadronicOverEMCutValueEE, funct::abs(), reco::Photon::hadronicOverEm(), reco::Photon::superCluster(), and value().

Referenced by PhoHadronicOverEMCut().

31  {
32  const float hadronicOverEMCutValue =
33  ( std::abs(cand->superCluster()->eta()) < _barrelCutOff ?
35 
36  return cand->hadronicOverEm() < hadronicOverEMCutValue;
37 }
const float _hadronicOverEMCutValueEE
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
const float _hadronicOverEMCutValueEB
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
float hadronicOverEm() const
the total hadronic over electromagnetic fraction
Definition: Photon.h:204
double PhoHadronicOverEMCut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 40 of file PhoHadronicOverEMCut.cc.

References reco::Photon::hadronicOverEm().

Referenced by operator()(), and PhoHadronicOverEMCut().

40  {
41  reco::PhotonPtr pho(cand);
42  return pho->hadronicOverEm();
43 }

Member Data Documentation

const float PhoHadronicOverEMCut::_barrelCutOff
private

Definition at line 22 of file PhoHadronicOverEMCut.cc.

Referenced by operator()().

const float PhoHadronicOverEMCut::_hadronicOverEMCutValueEB
private

Definition at line 22 of file PhoHadronicOverEMCut.cc.

Referenced by operator()().

const float PhoHadronicOverEMCut::_hadronicOverEMCutValueEE
private

Definition at line 22 of file PhoHadronicOverEMCut.cc.

Referenced by operator()().