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 override final {
10  return cand->pt();
11  }
12 
13  result_type asCandidate(const argument_type& cand) const override 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 override final
Definition: MinPtCut.cc:9
result_type asCandidate(const argument_type &cand) const override final
Definition: MinPtCut.cc:13
const double _minPt
Definition: MinPtCut.cc:18
#define DEFINE_EDM_PLUGIN(factory, type, name)