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

Public Member Functions

CandidateType candidateType () const overridefinal
 
 GsfEleMissingHitsCut (const edm::ParameterSet &c)
 
result_type operator() (const reco::GsfElectronPtr &) 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 unsigned _maxMissingHitsEB
 
const unsigned _maxMissingHitsEE
 

Additional Inherited Members

- Public Types inherited from CutApplicatorBase
enum  CandidateType {
  NONE, ELECTRON, MUON, PHOTON,
  TAU, PATELECTRON, PATMUON, PATPHOTON,
  PATTAU
}
 

Detailed Description

Definition at line 5 of file GsfEleMissingHitsCut.cc.

Constructor & Destructor Documentation

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

Definition at line 7 of file GsfEleMissingHitsCut.cc.

7  :
9  _maxMissingHitsEB(c.getParameter<unsigned>("maxMissingHitsEB")),
10  _maxMissingHitsEE(c.getParameter<unsigned>("maxMissingHitsEE")),
11  _barrelCutOff(c.getParameter<double>("barrelCutOff")){
12  }
T getParameter(std::string const &) const
const unsigned _maxMissingHitsEB
CutApplicatorBase(const edm::ParameterSet &c)
const unsigned _maxMissingHitsEE

Member Function Documentation

CandidateType GsfEleMissingHitsCut::candidateType ( ) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 16 of file GsfEleMissingHitsCut.cc.

References CutApplicatorBase::ELECTRON.

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

Reimplemented from CutApplicatorBase.

Definition at line 31 of file GsfEleMissingHitsCut.cc.

References _barrelCutOff, _maxMissingHitsEB, _maxMissingHitsEE, and funct::abs().

31  {
32  const unsigned maxMissingHits =
33  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
35  const unsigned mHits =
36  cand->gsfTrack()->trackerExpectedHitsInner().numberOfHits();
37  return mHits <= maxMissingHits;
38 }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const unsigned _maxMissingHitsEB
const unsigned _maxMissingHitsEE

Member Data Documentation

const double GsfEleMissingHitsCut::_barrelCutOff
private

Definition at line 22 of file GsfEleMissingHitsCut.cc.

Referenced by operator()().

const unsigned GsfEleMissingHitsCut::_maxMissingHitsEB
private

Definition at line 21 of file GsfEleMissingHitsCut.cc.

Referenced by operator()().

const unsigned GsfEleMissingHitsCut::_maxMissingHitsEE
private

Definition at line 21 of file GsfEleMissingHitsCut.cc.

Referenced by operator()().