Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-08 01:45:55

0001 #ifndef HeavyFlavorAnalysis_SpecificDecay_BPHMassCuts_h
0002 #define HeavyFlavorAnalysis_SpecificDecay_BPHMassCuts_h
0003 /** \class BPHMassCuts
0004  *
0005  *  Description: 
0006  *     Base class for candidate selection by invariant mass:
0007  *     only the mass cuts are handled here, actual selection
0008  *     (at momentum sum or kinemtic fit level) are to be implemented
0009  *     in derived classes
0010  *
0011  *  \author Paolo Ronchese INFN Padova
0012  *
0013  */
0014 
0015 //----------------------
0016 // Base Class Headers --
0017 //----------------------
0018 
0019 //------------------------------------
0020 // Collaborating Class Declarations --
0021 //------------------------------------
0022 
0023 //---------------
0024 // C++ Headers --
0025 //---------------
0026 
0027 //              ---------------------
0028 //              -- Class Interface --
0029 //              ---------------------
0030 
0031 class BPHMassCuts {
0032 public:
0033   /** Constructor
0034    */
0035   BPHMassCuts(double minMass, double maxMass) : mMin(minMass), mMax(maxMass) {}
0036 
0037   // deleted copy constructor and assignment operator
0038   BPHMassCuts(const BPHMassCuts& x) = delete;
0039   BPHMassCuts& operator=(const BPHMassCuts& x) = delete;
0040 
0041   /** Destructor
0042    */
0043   virtual ~BPHMassCuts() = default;
0044 
0045   /** Operations
0046    */
0047   /// set mass cuts
0048   void setMassMin(double m) {
0049     mMin = m;
0050     return;
0051   }
0052   void setMassMax(double m) {
0053     mMax = m;
0054     return;
0055   }
0056 
0057   /// get current mass cuts
0058   double getMassMin() const { return mMin; }
0059   double getMassMax() const { return mMax; }
0060 
0061 protected:
0062   double mMin;
0063   double mMax;
0064 };
0065 
0066 #endif