CMS 3D CMS Logo

BPHParticlePtSelect.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHParticlePtSelect_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHParticlePtSelect_h
3 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
16 
17 //------------------------------------
18 // Collaborating Class Declarations --
19 //------------------------------------
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 
26 // ---------------------
27 // -- Class Interface --
28 // ---------------------
29 
31 public:
34  BPHParticlePtSelect(double pt) : ptMin(pt) {}
35 
38  ~BPHParticlePtSelect() override {}
39 
42  bool accept(const reco::Candidate& cand) const override { return (cand.p4().pt() > ptMin); }
44 
46  void setPtMin(double pt) {
47  ptMin = pt;
48  return;
49  }
50 
52  double getPtMin() const { return ptMin; }
53 
54 private:
55  // private copy and assigment constructors
56  BPHParticlePtSelect(const BPHParticlePtSelect& x) = delete;
58 
59  double ptMin;
60 };
61 
62 #endif
void setPtMin(double pt)
set pt min
double getPtMin() const
get current pt min
virtual const LorentzVector & p4() const =0
four-momentum Lorentz vector
BPHParticlePtSelect & operator=(const BPHParticlePtSelect &x)=delete
bool accept(const reco::Candidate &cand) const override
select particle