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 
MinPtCut(const edm::ParameterSet &c)
Definition: MinPtCut.cc:5
const double _minPt
Definition: MinPtCut.cc:12
#define DEFINE_EDM_PLUGIN(factory, type, name)
double value(const reco::CandidatePtr &cand) const final
Definition: MinPtCut.cc:7
result_type asCandidate(const argument_type &cand) const final
Definition: MinPtCut.cc:9