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:
35 
36  // deleted copy constructor and assignment operator
37  BPHParticlePtSelect(const BPHParticlePtSelect& x) = delete;
39 
42  ~BPHParticlePtSelect() override = default;
43 
46  bool accept(const reco::Candidate& cand) const override { return (cand.p4().pt() >= ptMin); }
48 
50  void setPtMin(double pt) {
51  ptMin = pt;
52  return;
53  }
54 
56  double getPtMin() const { return ptMin; }
57 
58 private:
59  double ptMin;
60 };
61 
62 #endif
double getPtMin() const
get current pt min
void setPtMin(double pt)
set pt min
~BPHParticlePtSelect() override=default
bool accept(const reco::Candidate &cand) const override
select particle
BPHParticlePtSelect & operator=(const BPHParticlePtSelect &x)=delete