CMS 3D CMS Logo

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

Public Member Functions

CandidateType candidateType () const final
 
result_type operator() (const reco::PhotonPtr &) const final
 
 PhoFull5x5SigmaIEtaIEtaCut (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

float _barrelCutOff
 
float _cutValueEB
 
float _cutValueEE
 

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 PhoFull5x5SigmaIEtaIEtaCut.cc.

Constructor & Destructor Documentation

PhoFull5x5SigmaIEtaIEtaCut::PhoFull5x5SigmaIEtaIEtaCut ( const edm::ParameterSet c)

Definition at line 26 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

References operator()().

26  :
28  _cutValueEB(c.getParameter<double>("cutValueEB")),
29  _cutValueEE(c.getParameter<double>("cutValueEE")),
30  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {
31 }
T getParameter(std::string const &) const

Member Function Documentation

CandidateType PhoFull5x5SigmaIEtaIEtaCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 12 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

References CutApplicatorBase::PHOTON.

12  {
13  return PHOTON;
14  }
CutApplicatorBase::result_type PhoFull5x5SigmaIEtaIEtaCut::operator() ( const reco::PhotonPtr cand) const
finalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 35 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

References _barrelCutOff, _cutValueEB, _cutValueEE, funct::abs(), reco::Photon::full5x5_sigmaIetaIeta(), reco::Photon::superCluster(), and value().

Referenced by PhoFull5x5SigmaIEtaIEtaCut().

35  {
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 }
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
float full5x5_sigmaIetaIeta() const
Definition: Photon.h:237
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double PhoFull5x5SigmaIEtaIEtaCut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 47 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

References reco::Photon::full5x5_sigmaIetaIeta().

Referenced by operator()().

47  {
48  reco::PhotonPtr pho(cand);
49  return pho->full5x5_sigmaIetaIeta();
50 }

Member Data Documentation

float PhoFull5x5SigmaIEtaIEtaCut::_barrelCutOff
private

Definition at line 19 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

Referenced by operator()().

float PhoFull5x5SigmaIEtaIEtaCut::_cutValueEB
private

Definition at line 17 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

Referenced by operator()().

float PhoFull5x5SigmaIEtaIEtaCut::_cutValueEE
private

Definition at line 18 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

Referenced by operator()().