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 override 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
}
 

Detailed Description

Definition at line 3 of file MinPtCut.cc.

Constructor & Destructor Documentation

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

Definition at line 5 of file MinPtCut.cc.

5  :
7  _minPt(c.getParameter<double>("minPt")) { }
T getParameter(std::string const &) const
const double _minPt
Definition: MinPtCut.cc:18

Member Function Documentation

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

Reimplemented from CutApplicatorBase.

Definition at line 13 of file MinPtCut.cc.

References _minPt.

13  {
14  return cand->pt() > _minPt;
15  }
const double _minPt
Definition: MinPtCut.cc:18
double MinPtCut::value ( const reco::CandidatePtr cand) const
inlinefinalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 9 of file MinPtCut.cc.

9  {
10  return cand->pt();
11  }

Member Data Documentation

const double MinPtCut::_minPt
private

Definition at line 18 of file MinPtCut.cc.

Referenced by asCandidate().