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 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

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
}
 
- Public Types inherited from candidate_functions::CandidateCut
using argument_type = reco::CandidatePtr
 
using result_type = bool
 

Detailed Description

Definition at line 4 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

Constructor & Destructor Documentation

◆ PhoFull5x5SigmaIEtaIEtaCut()

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

Definition at line 22 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

24  _cutValueEB(c.getParameter<double>("cutValueEB")),
25  _cutValueEE(c.getParameter<double>("cutValueEE")),
26  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {}

Member Function Documentation

◆ candidateType()

CandidateType PhoFull5x5SigmaIEtaIEtaCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 12 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

12 { return PHOTON; }

References CutApplicatorBase::PHOTON.

◆ operator()()

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

Reimplemented from CutApplicatorBase.

Definition at line 28 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

28  {
29  // Figure out the cut value
30  const float full5x5SigmaIEtaIEtaCutValue =
31  (std::abs(cand->superCluster()->eta()) < _barrelCutOff ? _cutValueEB : _cutValueEE);
32 
33  // Apply the cut and return the result
34  return cand->full5x5_sigmaIetaIeta() < full5x5SigmaIEtaIEtaCutValue;
35 }

References _barrelCutOff, _cutValueEB, _cutValueEE, and funct::abs().

◆ value()

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

Implements candidate_functions::CandidateCut.

Definition at line 37 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

37  {
38  reco::PhotonPtr pho(cand);
39  return pho->full5x5_sigmaIetaIeta();
40 }

Member Data Documentation

◆ _barrelCutOff

float PhoFull5x5SigmaIEtaIEtaCut::_barrelCutOff
private

Definition at line 17 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

Referenced by operator()().

◆ _cutValueEB

float PhoFull5x5SigmaIEtaIEtaCut::_cutValueEB
private

Definition at line 15 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

Referenced by operator()().

◆ _cutValueEE

float PhoFull5x5SigmaIEtaIEtaCut::_cutValueEE
private

Definition at line 16 of file PhoFull5x5SigmaIEtaIEtaCut.cc.

Referenced by operator()().

CutApplicatorBase::PHOTON
Definition: CutApplicatorBase.h:47
PhoFull5x5SigmaIEtaIEtaCut::_cutValueEE
float _cutValueEE
Definition: PhoFull5x5SigmaIEtaIEtaCut.cc:16
CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
PhoFull5x5SigmaIEtaIEtaCut::_barrelCutOff
float _barrelCutOff
Definition: PhoFull5x5SigmaIEtaIEtaCut.cc:17
PhoFull5x5SigmaIEtaIEtaCut::_cutValueEB
float _cutValueEB
Definition: PhoFull5x5SigmaIEtaIEtaCut.cc:15
cand
Definition: decayParser.h:32
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
edm::Ptr
Definition: AssociationVector.h:31
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22