CMS 3D CMS Logo

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

Public Member Functions

CandidateType candidateType () const final
 
 GsfEleSigmaIEtaIEtaCut (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 edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
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 reco::PhotonPtr &) 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
 
 ~CutApplicatorBase () override
 Destructor. More...
 
- Public Member Functions inherited from candidate_functions::CandidateCut
 CandidateCut ()
 
virtual ~CandidateCut ()
 

Private Attributes

const double _barrelCutOff
 
const double _sigmaIEtaIEtaCutValueEB
 
const double _sigmaIEtaIEtaCutValueEE
 

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

Constructor & Destructor Documentation

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

Definition at line 6 of file GsfEleSigmaIEtaIEtaCut.cc.

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

8  _sigmaIEtaIEtaCutValueEB(c.getParameter<double>("sigmaIEtaIEtaCutValueEB")),
9  _sigmaIEtaIEtaCutValueEE(c.getParameter<double>("sigmaIEtaIEtaCutValueEE")),
10  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {}
T getParameter(std::string const &) const

Member Function Documentation

CandidateType GsfEleSigmaIEtaIEtaCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 16 of file GsfEleSigmaIEtaIEtaCut.cc.

References CutApplicatorBase::ELECTRON.

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

Reimplemented from CutApplicatorBase.

Definition at line 24 of file GsfEleSigmaIEtaIEtaCut.cc.

References _barrelCutOff, _sigmaIEtaIEtaCutValueEB, _sigmaIEtaIEtaCutValueEE, funct::abs(), reco::GsfElectron::sigmaIetaIeta(), and reco::GsfElectron::superCluster().

Referenced by GsfEleSigmaIEtaIEtaCut().

24  {
25  const float sigmaIEtaIEtaCutValue =
26  (std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ? _sigmaIEtaIEtaCutValueEB
28  return cand->sigmaIetaIeta() < sigmaIEtaIEtaCutValue;
29 }
float sigmaIetaIeta() const
Definition: GsfElectron.h:411
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
SuperClusterRef superCluster() const override
reference to a SuperCluster
Definition: GsfElectron.h:155
double GsfEleSigmaIEtaIEtaCut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 31 of file GsfEleSigmaIEtaIEtaCut.cc.

References reco::GsfElectron::sigmaIetaIeta().

Referenced by GsfEleSigmaIEtaIEtaCut().

31  {
32  reco::GsfElectronPtr ele(cand);
33  return ele->sigmaIetaIeta();
34 }

Member Data Documentation

const double GsfEleSigmaIEtaIEtaCut::_barrelCutOff
private

Definition at line 19 of file GsfEleSigmaIEtaIEtaCut.cc.

Referenced by operator()().

const double GsfEleSigmaIEtaIEtaCut::_sigmaIEtaIEtaCutValueEB
private

Definition at line 19 of file GsfEleSigmaIEtaIEtaCut.cc.

Referenced by operator()().

const double GsfEleSigmaIEtaIEtaCut::_sigmaIEtaIEtaCutValueEE
private

Definition at line 19 of file GsfEleSigmaIEtaIEtaCut.cc.

Referenced by operator()().