Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:19

0001 #ifndef CASTOR_CALIBRATIONS_H
0002 #define CASTOR_CALIBRATIONS_H
0003 
0004 /** \class CastorCalibrations
0005     
0006     Container for retrieved calibration constants for Castor
0007 
0008 */
0009 class CastorCalibrations {
0010 public:
0011   CastorCalibrations() : mGain{}, mPedestal{} {};
0012   CastorCalibrations(const float fGain[4], const float fPedestal[4]);
0013   /// get gain for capid=0..3
0014   double gain(int fCapId) const { return mGain[fCapId]; }
0015   /// get pedestal for capid=0..3
0016   double pedestal(int fCapId) const { return mPedestal[fCapId]; }
0017 
0018 private:
0019   double mGain[4];
0020   double mPedestal[4];
0021 };
0022 
0023 #endif