CMS 3D CMS Logo

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 final
 
 GsfEleSCMaxAbsEtaCut (const edm::ParameterSet &c)
 
result_type operator() (const reco::GsfElectronPtr &cand) const final
 
double value (const reco::CandidatePtr &cand) const final
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase ()
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
const std::string & name () const override
 
result_type operator() (const argument_type &) const final
 
virtual result_type operator() (const pat::ElectronPtr &) const
 
virtual result_type operator() (const pat::MuonPtr &) const
 
virtual result_type operator() (const pat::PhotonPtr &) const
 
virtual result_type operator() (const pat::TauPtr &) const
 
virtual result_type operator() (const reco::MuonPtr &) const
 
virtual result_type operator() (const reco::PFTauPtr &) const
 
virtual result_type operator() (const reco::PhotonPtr &) const
 
CutApplicatorBaseoperator= (const CutApplicatorBase &)=delete
 
 ~CutApplicatorBase () override
 Destructor. More...
 
- Public Member Functions inherited from candidate_functions::CandidateCut
 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
}
 
- Public Types inherited from candidate_functions::CandidateCut
using argument_type = reco::CandidatePtr
 
using result_type = bool
 

Detailed Description

Definition at line 4 of file GsfEleSCMaxAbsEtaCut.cc.

Constructor & Destructor Documentation

◆ GsfEleSCMaxAbsEtaCut()

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

Definition at line 6 of file GsfEleSCMaxAbsEtaCut.cc.

6 : CutApplicatorBase(c), _maxEta(c.getParameter<bool>("maxEta")) {}

Member Function Documentation

◆ candidateType()

CandidateType GsfEleSCMaxAbsEtaCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 19 of file GsfEleSCMaxAbsEtaCut.cc.

19 { return ELECTRON; }

References CutApplicatorBase::ELECTRON.

◆ operator()()

result_type GsfEleSCMaxAbsEtaCut::operator() ( const reco::GsfElectronPtr cand) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 8 of file GsfEleSCMaxAbsEtaCut.cc.

8  {
9  const reco::SuperClusterRef& scref = cand->superCluster();
10  return std::abs(scref->eta()) < _maxEta;
11  }

References _maxEta, and funct::abs().

◆ value()

double GsfEleSCMaxAbsEtaCut::value ( const reco::CandidatePtr cand) const
inlinefinalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 13 of file GsfEleSCMaxAbsEtaCut.cc.

13  {
15  const reco::SuperClusterRef& scref = ele->superCluster();
16  return std::abs(scref->eta());
17  }

References funct::abs(), and reco::GsfElectron::superCluster().

Member Data Documentation

◆ _maxEta

const double GsfEleSCMaxAbsEtaCut::_maxEta
private

Definition at line 22 of file GsfEleSCMaxAbsEtaCut.cc.

Referenced by operator()().

CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
edm::Ref< SuperClusterCollection >
cand
Definition: decayParser.h:32
GsfEleSCMaxAbsEtaCut::_maxEta
const double _maxEta
Definition: GsfEleSCMaxAbsEtaCut.cc:22
edm::Ptr< reco::GsfElectron >
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
CutApplicatorBase::ELECTRON
Definition: CutApplicatorBase.h:47