File indexing completed on 2024-04-06 12:15:35
0001 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHMassSelect_h
0002 #define HeavyFlavorAnalysis_SpecificDecay_BPHMassSelect_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHMomentumSelect.h"
0016 #include "HeavyFlavorAnalysis/SpecificDecay/interface/BPHMassCuts.h"
0017
0018
0019
0020
0021 #include "HeavyFlavorAnalysis/RecoDecay/interface/BPHDecayMomentum.h"
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 class BPHMassSelect : public BPHMomentumSelect, public BPHMassCuts {
0032 public:
0033
0034
0035 BPHMassSelect(double minMass, double maxMass) : BPHMassCuts(minMass, maxMass) {}
0036
0037
0038 BPHMassSelect(const BPHMassSelect& x) = delete;
0039 BPHMassSelect& operator=(const BPHMassSelect& x) = delete;
0040
0041
0042
0043 ~BPHMassSelect() override = default;
0044
0045
0046
0047
0048 bool accept(const BPHDecayMomentum& cand) const override {
0049 double mass = cand.composite().mass();
0050 return ((mass >= mMin) && (mass <= mMax));
0051 }
0052 };
0053
0054 #endif