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

Public Member Functions

CandidateType candidateType () const overridefinal
 
 GsfEleDEtaInCut (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 double _dEtaInCutValueEB
 
const double _dEtaInCutValueEE
 

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

Constructor & Destructor Documentation

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

Definition at line 6 of file GsfEleDEtaInCut.cc.

6  :
8  _dEtaInCutValueEB(c.getParameter<double>("dEtaInCutValueEB")),
9  _dEtaInCutValueEE(c.getParameter<double>("dEtaInCutValueEE")),
10  _barrelCutOff(c.getParameter<double>("barrelCutOff")){
11  }
T getParameter(std::string const &) const
const double _dEtaInCutValueEE
const double _barrelCutOff
CutApplicatorBase(const edm::ParameterSet &c)
const double _dEtaInCutValueEB

Member Function Documentation

CandidateType GsfEleDEtaInCut::candidateType ( ) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 15 of file GsfEleDEtaInCut.cc.

References CutApplicatorBase::ELECTRON.

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

Reimplemented from CutApplicatorBase.

Definition at line 29 of file GsfEleDEtaInCut.cc.

References _barrelCutOff, _dEtaInCutValueEB, _dEtaInCutValueEE, and funct::abs().

29  {
30  const float dEtaInCutValue =
31  ( std::abs(cand->superCluster()->position().eta()) < _barrelCutOff ?
33  return std::abs(cand->deltaEtaSuperClusterTrackAtVtx()) < dEtaInCutValue;
34 }
const double _dEtaInCutValueEE
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const double _barrelCutOff
const double _dEtaInCutValueEB

Member Data Documentation

const double GsfEleDEtaInCut::_barrelCutOff
private

Definition at line 20 of file GsfEleDEtaInCut.cc.

Referenced by operator()().

const double GsfEleDEtaInCut::_dEtaInCutValueEB
private

Definition at line 20 of file GsfEleDEtaInCut.cc.

Referenced by operator()().

const double GsfEleDEtaInCut::_dEtaInCutValueEE
private

Definition at line 20 of file GsfEleDEtaInCut.cc.

Referenced by operator()().