File indexing completed on 2024-04-06 12:15:36
0001 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHParticlePtSelect_h
0002 #define HeavyFlavorAnalysis_SpecificDecay_BPHParticlePtSelect_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHRecoSelect.h"
0016
0017
0018
0019
0020 #include "DataFormats/RecoCandidate/interface/RecoCandidate.h"
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030 class BPHParticlePtSelect : public BPHRecoSelect {
0031 public:
0032
0033
0034 BPHParticlePtSelect(double pt) : ptMin(pt) {}
0035
0036
0037 BPHParticlePtSelect(const BPHParticlePtSelect& x) = delete;
0038 BPHParticlePtSelect& operator=(const BPHParticlePtSelect& x) = delete;
0039
0040
0041
0042 ~BPHParticlePtSelect() override = default;
0043
0044
0045
0046
0047 bool accept(const reco::Candidate& cand) const override { return (cand.p4().pt() >= ptMin); }
0048
0049
0050 void setPtMin(double pt) {
0051 ptMin = pt;
0052 return;
0053 }
0054
0055
0056 double getPtMin() const { return ptMin; }
0057
0058 private:
0059 double ptMin;
0060 };
0061
0062 #endif