Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:11

0001 #ifndef HCAL_CALIBRATION_WIDTHS_H
0002 #define HCAL_CALIBRATION_WIDTHS_H
0003 
0004 /** \class HcalCalibrationWidths
0005     
0006     Container for retrieving uncertainties of calibration constants for HCAL
0007    $Author: ratnikov
0008 */
0009 class HcalCalibrationWidths {
0010 public:
0011   HcalCalibrationWidths(){};
0012   HcalCalibrationWidths(const float fGain[4], const float fPedestal[4], const float fEffectivePedestal[4]);
0013   /// get gain width for capid=0..3
0014   double gain(int fCapId) const { return mGain[fCapId]; }
0015   /// get pedestal width for capid=0..3
0016   double pedestal(int fCapId) const { return mPedestal[fCapId]; }
0017   /// get effective pedestal width for capid=0..3
0018   double effpedestal(int fCapId) const { return mEffectivePedestal[fCapId]; }
0019 
0020 private:
0021   double mGain[4];
0022   double mPedestal[4];
0023   double mEffectivePedestal[4];
0024 };
0025 #endif