CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 overridefinal
 
 GsfEleSigmaIEtaIEtaCut (const edm::ParameterSet &c)
 
result_type operator() (const reco::GsfElectronPtr &) const overridefinal
 
double value (const reco::CandidatePtr &cand) const overridefinal
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
const std::string & name () const
 
virtual 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
 
virtual ~CutApplicatorBase ()
 Destructor. More...
 
- Public Member Functions inherited from candidate_functions::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
}
 

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.

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

Member Function Documentation

CandidateType GsfEleSigmaIEtaIEtaCut::candidateType ( ) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 17 of file GsfEleSigmaIEtaIEtaCut.cc.

References CutApplicatorBase::ELECTRON.

17  {
18  return ELECTRON;
19  }
CutApplicatorBase::result_type GsfEleSigmaIEtaIEtaCut::operator() ( const reco::GsfElectronPtr cand) const
finaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 31 of file GsfEleSigmaIEtaIEtaCut.cc.

References _barrelCutOff, _sigmaIEtaIEtaCutValueEB, _sigmaIEtaIEtaCutValueEE, and funct::abs().

31  {
32  const float sigmaIEtaIEtaCutValue =
33  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
35  return cand->sigmaIetaIeta() < sigmaIEtaIEtaCutValue;
36 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double GsfEleSigmaIEtaIEtaCut::value ( const reco::CandidatePtr cand) const
finaloverridevirtual

Implements candidate_functions::CandidateCut.

Definition at line 39 of file GsfEleSigmaIEtaIEtaCut.cc.

39  {
40  reco::GsfElectronPtr ele(cand);
41  return ele->sigmaIetaIeta();
42 }

Member Data Documentation

const double GsfEleSigmaIEtaIEtaCut::_barrelCutOff
private

Definition at line 22 of file GsfEleSigmaIEtaIEtaCut.cc.

Referenced by operator()().

const double GsfEleSigmaIEtaIEtaCut::_sigmaIEtaIEtaCutValueEB
private

Definition at line 22 of file GsfEleSigmaIEtaIEtaCut.cc.

Referenced by operator()().

const double GsfEleSigmaIEtaIEtaCut::_sigmaIEtaIEtaCutValueEE
private

Definition at line 22 of file GsfEleSigmaIEtaIEtaCut.cc.

Referenced by operator()().