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 override final
 
 MaxAbsEtaCut (const edm::ParameterSet &c)
 
double value (const reco::CandidatePtr &cand) const override final
 
- Public Member Functions inherited from CutApplicatorBase
virtual CandidateType candidateType () const
 
 CutApplicatorBase ()
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
virtual const std::string & name () const
 
virtual 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
 
virtual ~CutApplicatorBase ()
 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
}
 

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  :
7  _maxEta(c.getParameter<double>("maxEta")) { }
T getParameter(std::string const &) const
const double _maxEta
Definition: MaxAbsEtaCut.cc:18

Member Function Documentation

result_type MaxAbsEtaCut::asCandidate ( const argument_type &  cand) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 13 of file MaxAbsEtaCut.cc.

References _maxEta, and funct::abs().

13  {
14  return std::abs(cand->eta()) < _maxEta;
15  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
const double _maxEta
Definition: MaxAbsEtaCut.cc:18
double MaxAbsEtaCut::value ( const reco::CandidatePtr cand) const
inlinefinaloverridevirtual

Implements candidate_functions::CandidateCut.

Definition at line 9 of file MaxAbsEtaCut.cc.

References funct::abs().

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

Member Data Documentation

const double MaxAbsEtaCut::_maxEta
private

Definition at line 18 of file MaxAbsEtaCut.cc.

Referenced by asCandidate().