CMS 3D CMS Logo

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

Public Member Functions

CandidateType candidateType () const final
 
result_type operator() (const reco::PhotonPtr &) const final
 
 PhoSingleTowerHadOverEmCut (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 CutApplicatorBase &)=delete
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
const std::string & name () const override
 
result_type operator() (const argument_type &) const final
 
virtual result_type operator() (const pat::ElectronPtr &) const
 
virtual result_type operator() (const pat::MuonPtr &) const
 
virtual result_type operator() (const reco::GsfElectronPtr &) const
 
virtual result_type operator() (const reco::MuonPtr &) const
 
CutApplicatorBaseoperator= (const CutApplicatorBase &)=delete
 
 ~CutApplicatorBase () override
 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
}
 
- Public Types inherited from candidate_functions::CandidateCut
using argument_type = reco::CandidatePtr
 
using result_type = bool
 

Detailed Description

Definition at line 4 of file PhoSingleTowerHadOverEmCut.cc.

Constructor & Destructor Documentation

◆ PhoSingleTowerHadOverEmCut()

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

Definition at line 6 of file PhoSingleTowerHadOverEmCut.cc.

8  _hadronicOverEMCutValueEB(c.getParameter<double>("hadronicOverEMCutValueEB")),
9  _hadronicOverEMCutValueEE(c.getParameter<double>("hadronicOverEMCutValueEE")),
10  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {}

Member Function Documentation

◆ candidateType()

CandidateType PhoSingleTowerHadOverEmCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 16 of file PhoSingleTowerHadOverEmCut.cc.

16 { return PHOTON; }

References CutApplicatorBase::PHOTON.

◆ operator()()

CutApplicatorBase::result_type PhoSingleTowerHadOverEmCut::operator() ( const reco::PhotonPtr cand) const
finalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 24 of file PhoSingleTowerHadOverEmCut.cc.

24  {
25  const float hadronicOverEMCutValue =
27 
28  return cand->hadTowOverEm() < hadronicOverEMCutValue;
29 }

References _barrelCutOff, _hadronicOverEMCutValueEB, _hadronicOverEMCutValueEE, and funct::abs().

◆ value()

double PhoSingleTowerHadOverEmCut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 31 of file PhoSingleTowerHadOverEmCut.cc.

31  {
32  reco::PhotonPtr pho(cand);
33  return pho->hadTowOverEm();
34 }

Member Data Documentation

◆ _barrelCutOff

const float PhoSingleTowerHadOverEmCut::_barrelCutOff
private

Definition at line 19 of file PhoSingleTowerHadOverEmCut.cc.

Referenced by operator()().

◆ _hadronicOverEMCutValueEB

const float PhoSingleTowerHadOverEmCut::_hadronicOverEMCutValueEB
private

Definition at line 19 of file PhoSingleTowerHadOverEmCut.cc.

Referenced by operator()().

◆ _hadronicOverEMCutValueEE

const float PhoSingleTowerHadOverEmCut::_hadronicOverEMCutValueEE
private

Definition at line 19 of file PhoSingleTowerHadOverEmCut.cc.

Referenced by operator()().

CutApplicatorBase::PHOTON
Definition: CutApplicatorBase.h:47
CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
PhoSingleTowerHadOverEmCut::_hadronicOverEMCutValueEB
const float _hadronicOverEMCutValueEB
Definition: PhoSingleTowerHadOverEmCut.cc:19
cand
Definition: decayParser.h:34
PhoSingleTowerHadOverEmCut::_hadronicOverEMCutValueEE
const float _hadronicOverEMCutValueEE
Definition: PhoSingleTowerHadOverEmCut.cc:19
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
edm::Ptr
Definition: AssociationVector.h:31
PhoSingleTowerHadOverEmCut::_barrelCutOff
const float _barrelCutOff
Definition: PhoSingleTowerHadOverEmCut.cc:19
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22