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
GsfEleFull5x5SigmaIEtaIEtaCut Class Reference
Inheritance diagram for GsfEleFull5x5SigmaIEtaIEtaCut:
CutApplicatorBase candidate_functions::CandidateCut

Public Member Functions

CandidateType candidateType () const overridefinal
 
 GsfEleFull5x5SigmaIEtaIEtaCut (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

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
}
 

Detailed Description

Definition at line 4 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

Constructor & Destructor Documentation

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

Definition at line 27 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

27  :
29  _full5x5SigmaIEtaIEtaCutValueEB(c.getParameter<double>("full5x5SigmaIEtaIEtaCutValueEB")),
30  _full5x5SigmaIEtaIEtaCutValueEE(c.getParameter<double>("full5x5SigmaIEtaIEtaCutValueEE")),
31  _barrelCutOff(c.getParameter<double>("barrelCutOff")) {
32 
33 }
T getParameter(std::string const &) const
CutApplicatorBase(const edm::ParameterSet &c)

Member Function Documentation

CandidateType GsfEleFull5x5SigmaIEtaIEtaCut::candidateType ( ) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 12 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

References CutApplicatorBase::ELECTRON.

12  {
13  return ELECTRON;
14  }
CutApplicatorBase::result_type GsfEleFull5x5SigmaIEtaIEtaCut::operator() ( const reco::GsfElectronPtr cand) const
finaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 37 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

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

37  {
38 
39  // Figure out the cut value
40  const float full5x5SigmaIEtaIEtaCutValue =
41  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
43 
44  // Apply the cut and return the result
45  return cand->full5x5_sigmaIetaIeta() < full5x5SigmaIEtaIEtaCutValue;
46 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double GsfEleFull5x5SigmaIEtaIEtaCut::value ( const reco::CandidatePtr cand) const
finaloverridevirtual

Implements candidate_functions::CandidateCut.

Definition at line 49 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

49  {
50  reco::GsfElectronPtr ele(cand);
51  return ele->full5x5_sigmaIetaIeta();
52 }

Member Data Documentation

float GsfEleFull5x5SigmaIEtaIEtaCut::_barrelCutOff
private

Definition at line 19 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

Referenced by operator()().

float GsfEleFull5x5SigmaIEtaIEtaCut::_full5x5SigmaIEtaIEtaCutValueEB
private

Definition at line 17 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

Referenced by operator()().

float GsfEleFull5x5SigmaIEtaIEtaCut::_full5x5SigmaIEtaIEtaCutValueEE
private

Definition at line 18 of file GsfEleFull5x5SigmaIEtaIEtaCut.cc.

Referenced by operator()().