CMS 3D CMS Logo

MinPtCut.cc
Go to the documentation of this file.
2 
3 class MinPtCut : public CutApplicatorBase {
4 public:
7  _minPt(c.getParameter<double>("minPt")) { }
8 
9  double value(const reco::CandidatePtr& cand) const final {
10  return cand->pt();
11  }
12 
13  result_type asCandidate(const argument_type& cand) const final {
14  return cand->pt() > _minPt;
15  }
16 
17 private:
18  const double _minPt;
19 };
20 
22 
MinPtCut(const edm::ParameterSet &c)
Definition: MinPtCut.cc:5
double value(const reco::CandidatePtr &cand) const final
Definition: MinPtCut.cc:9
const double _minPt
Definition: MinPtCut.cc:18
result_type asCandidate(const argument_type &cand) const final
Definition: MinPtCut.cc:13
#define DEFINE_EDM_PLUGIN(factory, type, name)