CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
MaxAbsEtaCut Class Reference
Inheritance diagram for MaxAbsEtaCut:
CutApplicatorBase candidate_functions::CandidateCut

Public Member Functions

result_type asCandidate (const argument_type &cand) const final
 
 MaxAbsEtaCut (const edm::ParameterSet &c)
 
double value (const reco::CandidatePtr &cand) const final
 
- Public Member Functions inherited from CutApplicatorBase
virtual CandidateType candidateType () 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::GsfElectronPtr &) 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 3 of file MaxAbsEtaCut.cc.

Constructor & Destructor Documentation

◆ MaxAbsEtaCut()

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

Definition at line 5 of file MaxAbsEtaCut.cc.

5 : CutApplicatorBase(c), _maxEta(c.getParameter<double>("maxEta")) {}

Member Function Documentation

◆ asCandidate()

result_type MaxAbsEtaCut::asCandidate ( const argument_type cand) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 9 of file MaxAbsEtaCut.cc.

9 { return std::abs(cand->eta()) < _maxEta; }

References _maxEta, and funct::abs().

◆ value()

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

Implements candidate_functions::CandidateCut.

Definition at line 7 of file MaxAbsEtaCut.cc.

7 { return std::abs(cand->eta()); }

References funct::abs().

Member Data Documentation

◆ _maxEta

const double MaxAbsEtaCut::_maxEta
private

Definition at line 12 of file MaxAbsEtaCut.cc.

Referenced by asCandidate().

CutApplicatorBase::CutApplicatorBase
CutApplicatorBase()
Definition: CutApplicatorBase.h:49
MaxAbsEtaCut::_maxEta
const double _maxEta
Definition: MaxAbsEtaCut.cc:12
cand
Definition: decayParser.h:34
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22