CMS 3D CMS Logo

MinPtCut.cc
Go to the documentation of this file.
2 
3 class MinPtCut : public CutApplicatorBase {
4 public:
5  MinPtCut(const edm::ParameterSet& c) : CutApplicatorBase(c), _minPt(c.getParameter<double>("minPt")) {}
6 
7  double value(const reco::CandidatePtr& cand) const final { return cand->pt(); }
8 
9  result_type asCandidate(const argument_type& cand) const final { return cand->pt() > _minPt; }
10 
11 private:
12  const double _minPt;
13 };
14 
candidate_functions::CandidateCut::result_type
bool result_type
Definition: CandidateCut.h:11
MinPtCut
Definition: MinPtCut.cc:3
MinPtCut::MinPtCut
MinPtCut(const edm::ParameterSet &c)
Definition: MinPtCut.cc:5
MinPtCut::value
double value(const reco::CandidatePtr &cand) const final
Definition: MinPtCut.cc:7
DEFINE_EDM_PLUGIN
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: PluginFactory.h:124
MinPtCut::_minPt
const double _minPt
Definition: MinPtCut.cc:12
edm::ParameterSet
Definition: ParameterSet.h:47
edmplugin::PluginFactory
Definition: PluginFactory.h:34
cand
Definition: decayParser.h:32
MinPtCut::asCandidate
result_type asCandidate(const argument_type &cand) const final
Definition: MinPtCut.cc:9
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
edm::Ptr< Candidate >
CutApplicatorBase
Definition: CutApplicatorBase.h:45
CutApplicatorBase.h