]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALCalibData.h
modifications to SMcalib help script to deal with new RCU and FEE firmware (register...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALCalibData.h
1 #ifndef ALIEMCALCALIBDATA_H
2 #define ALIEMCALCALIBDATA_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /* $Id$ */
8
9 ////////////////////////////////////////////////
10 //  class for EMCAL calibration                 //
11 ////////////////////////////////////////////////
12
13 #include "TNamed.h"
14
15 class AliEMCALCalibData: public TNamed {
16
17  public:
18   AliEMCALCalibData();
19   AliEMCALCalibData(const char* name);
20   AliEMCALCalibData(const AliEMCALCalibData &calibda);
21   AliEMCALCalibData& operator= (const AliEMCALCalibData &calibda);
22   virtual ~AliEMCALCalibData();
23   void Reset();
24   virtual void Print(Option_t *option = "") const; 
25   // All indexes start from 0!
26   Float_t GetADCchannel(Int_t module, Int_t column, Int_t row) const;
27   Float_t GetADCpedestal(Int_t module, Int_t column, Int_t row) const;
28   //
29   void SetADCchannel(Int_t module, Int_t column, Int_t row, Float_t value);
30   void SetADCpedestal(Int_t module, Int_t column, Int_t row, Float_t value);
31
32  protected:
33   Float_t  fADCchannel[12][48][24] ;  // width of one ADC channel in GeV ([mod][col][row])
34   Float_t  fADCpedestal[12][48][24] ; // value of the  ADC pedestal ([mod][col][row])
35   //
36   ClassDef(AliEMCALCalibData,1)    // EMCAL Calibration data
37 };
38
39 #endif