CMS 3D CMS Logo

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

Public Member Functions

result_type asCandidate (const argument_type &cand) const final
 
 MinPtCut (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 _minPt
 

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

Constructor & Destructor Documentation

◆ MinPtCut()

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

Definition at line 5 of file MinPtCut.cc.

5 : CutApplicatorBase(c), _minPt(c.getParameter<double>("minPt")) {}
const double _minPt
Definition: MinPtCut.cc:12

Member Function Documentation

◆ asCandidate()

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

Reimplemented from CutApplicatorBase.

Definition at line 9 of file MinPtCut.cc.

References _minPt.

9 { return cand->pt() > _minPt; }
const double _minPt
Definition: MinPtCut.cc:12

◆ value()

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

Implements candidate_functions::CandidateCut.

Definition at line 7 of file MinPtCut.cc.

7 { return cand->pt(); }

Member Data Documentation

◆ _minPt

const double MinPtCut::_minPt
private

Definition at line 12 of file MinPtCut.cc.

Referenced by asCandidate().