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

Public Member Functions

CandidateType candidateType () const overridefinal
 
 GsfEleSCMaxAbsEtaCut (const edm::ParameterSet &c)
 
result_type operator() (const reco::GsfElectronPtr &cand) 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 _maxEta
 

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

Constructor & Destructor Documentation

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

Definition at line 6 of file GsfEleSCMaxAbsEtaCut.cc.

6  :
8  _maxEta(c.getParameter<bool>("maxEta")) { }
T getParameter(std::string const &) const
CutApplicatorBase(const edm::ParameterSet &c)

Member Function Documentation

CandidateType GsfEleSCMaxAbsEtaCut::candidateType ( ) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 21 of file GsfEleSCMaxAbsEtaCut.cc.

References CutApplicatorBase::ELECTRON.

21  {
22  return ELECTRON;
23  }
result_type GsfEleSCMaxAbsEtaCut::operator() ( const reco::GsfElectronPtr cand) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 10 of file GsfEleSCMaxAbsEtaCut.cc.

References _maxEta, and funct::abs().

10  {
11  const reco::SuperClusterRef& scref = cand->superCluster();
12  return std::abs(scref->eta()) < _maxEta;
13  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
double GsfEleSCMaxAbsEtaCut::value ( const reco::CandidatePtr cand) const
inlinefinaloverridevirtual

Implements candidate_functions::CandidateCut.

Definition at line 15 of file GsfEleSCMaxAbsEtaCut.cc.

References funct::abs().

15  {
16  reco::GsfElectronPtr ele(cand);
17  const reco::SuperClusterRef& scref = ele->superCluster();
18  return std::abs(scref->eta());
19  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

Member Data Documentation

const double GsfEleSCMaxAbsEtaCut::_maxEta
private

Definition at line 26 of file GsfEleSCMaxAbsEtaCut.cc.

Referenced by operator()().