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 edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
const std::string & name () const override
 
result_type operator() (const argument_type &) const final
 
virtual result_type operator() (const reco::GsfElectronPtr &) const
 
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
 
 ~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 ( const edm::ParameterSet c)
inline

Definition at line 5 of file MaxAbsEtaCut.cc.

5 : CutApplicatorBase(c), _maxEta(c.getParameter<double>("maxEta")) {}
T getParameter(std::string const &) const
const double _maxEta
Definition: MaxAbsEtaCut.cc:12

Member Function Documentation

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

Reimplemented from CutApplicatorBase.

Definition at line 9 of file MaxAbsEtaCut.cc.

References _maxEta, and funct::abs().

9 { return std::abs(cand->eta()) < _maxEta; }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const double _maxEta
Definition: MaxAbsEtaCut.cc:12
double MaxAbsEtaCut::value ( const reco::CandidatePtr cand) const
inlinefinalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 7 of file MaxAbsEtaCut.cc.

References funct::abs().

7 { return std::abs(cand->eta()); }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

Member Data Documentation

const double MaxAbsEtaCut::_maxEta
private

Definition at line 12 of file MaxAbsEtaCut.cc.

Referenced by asCandidate().