CMS 3D CMS Logo

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

Public Member Functions

CandidateType candidateType () const final
 
 GsfEleFull5x5SigmaIEtaIEtaCut (const edm::ParameterSet &c)
 
result_type operator() (const reco::GsfElectronPtr &) const final
 
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 pat::PhotonPtr &) const
 
virtual result_type operator() (const pat::TauPtr &) const
 
virtual result_type operator() (const reco::MuonPtr &) const
 
virtual result_type operator() (const reco::PFTauPtr &) const
 
virtual result_type operator() (const reco::PhotonPtr &) 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 _full5x5SigmaIEtaIEtaCutValueEB
 
float _full5x5SigmaIEtaIEtaCutValueEE
 

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

Constructor & Destructor Documentation

◆ GsfEleFull5x5SigmaIEtaIEtaCut()

GsfEleFull5x5SigmaIEtaIEtaCut::GsfEleFull5x5SigmaIEtaIEtaCut ( const edm::ParameterSet c)

Definition at line 22 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

24  _full5x5SigmaIEtaIEtaCutValueEB(c.getParameter<double>("full5x5SigmaIEtaIEtaCutValueEB")),
25  _full5x5SigmaIEtaIEtaCutValueEE(c.getParameter<double>("full5x5SigmaIEtaIEtaCutValueEE")),
26  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {}

Member Function Documentation

◆ candidateType()

CandidateType GsfEleFull5x5SigmaIEtaIEtaCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 12 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

12 { return ELECTRON; }

References CutApplicatorBase::ELECTRON.

◆ operator()()

CutApplicatorBase::result_type GsfEleFull5x5SigmaIEtaIEtaCut::operator() ( const reco::GsfElectronPtr cand) const
finalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 28 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

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

References _barrelCutOff, _full5x5SigmaIEtaIEtaCutValueEB, _full5x5SigmaIEtaIEtaCutValueEE, and funct::abs().

◆ value()

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

Implements candidate_functions::CandidateCut.

Definition at line 38 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

38  {
40  return ele->full5x5_sigmaIetaIeta();
41 }

References reco::GsfElectron::full5x5_sigmaIetaIeta().

Member Data Documentation

◆ _barrelCutOff

float GsfEleFull5x5SigmaIEtaIEtaCut::_barrelCutOff
private

Definition at line 17 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

Referenced by operator()().

◆ _full5x5SigmaIEtaIEtaCutValueEB

float GsfEleFull5x5SigmaIEtaIEtaCut::_full5x5SigmaIEtaIEtaCutValueEB
private

Definition at line 15 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

Referenced by operator()().

◆ _full5x5SigmaIEtaIEtaCutValueEE

float GsfEleFull5x5SigmaIEtaIEtaCut::_full5x5SigmaIEtaIEtaCutValueEE
private

Definition at line 16 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

Referenced by operator()().

GsfEleFull5x5SigmaIEtaIEtaCut::_full5x5SigmaIEtaIEtaCutValueEB
float _full5x5SigmaIEtaIEtaCutValueEB
Definition: GsfEleFull5x5SigmaIEtaIEtaCut.cc:15
CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
GsfEleFull5x5SigmaIEtaIEtaCut::_barrelCutOff
float _barrelCutOff
Definition: GsfEleFull5x5SigmaIEtaIEtaCut.cc:17
cand
Definition: decayParser.h:32
edm::Ptr< reco::GsfElectron >
GsfEleFull5x5SigmaIEtaIEtaCut::_full5x5SigmaIEtaIEtaCutValueEE
float _full5x5SigmaIEtaIEtaCutValueEE
Definition: GsfEleFull5x5SigmaIEtaIEtaCut.cc:16
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:46
CutApplicatorBase::ELECTRON
Definition: CutApplicatorBase.h:47