CMS 3D CMS Logo

BPHMassSelect.h
Go to the documentation of this file.
1 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHMassSelect_h
2 #define HeavyFlavorAnalysis_SpecificDecay_BPHMassSelect_h
3 
12 //----------------------
13 // Base Class Headers --
14 //----------------------
17 
18 //------------------------------------
19 // Collaborating Class Declarations --
20 //------------------------------------
22 
23 //---------------
24 // C++ Headers --
25 //---------------
26 
27 // ---------------------
28 // -- Class Interface --
29 // ---------------------
30 
32 public:
36 
37  // deleted copy constructor and assignment operator
38  BPHMassSelect(const BPHMassSelect& x) = delete;
39  BPHMassSelect& operator=(const BPHMassSelect& x) = delete;
40 
43  ~BPHMassSelect() override = default;
44 
47  bool accept(const BPHDecayMomentum& cand) const override {
49  double mass = cand.composite().mass();
50  return ((mass >= mMin) && (mass <= mMax));
51  }
52 };
53 
54 #endif
BPHMassSelect(double minMass, double maxMass)
Definition: BPHMassSelect.h:35
double mMax
Definition: BPHMassCuts.h:63
bool accept(const BPHDecayMomentum &cand) const override
select particle
Definition: BPHMassSelect.h:48
double mMin
Definition: BPHMassCuts.h:62
BPHMassSelect & operator=(const BPHMassSelect &x)=delete
~BPHMassSelect() override=default