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 // ---------------------
28 // -- Class Interface --
29 // ---------------------
30 
32 
33  public:
34 
37  BPHParticlePtSelect( double pt ): ptMin( pt ) {}
38 
41  ~BPHParticlePtSelect() override {}
42 
45  bool accept( const reco::Candidate& cand ) const override {
47  return ( cand.p4().pt() > ptMin );
48  }
49 
51  void setPtMin( double pt ) { ptMin = pt; return; }
52 
54  double getPtMin() const { return ptMin; }
55 
56  private:
57 
58  // private copy and assigment constructors
59  BPHParticlePtSelect ( const BPHParticlePtSelect& x ) = delete;
61 
62  double ptMin;
63 
64 };
65 
66 
67 #endif
68 
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