Minor changes to comply with coding convention
[u/mrichter/AliRoot.git] / ZDC / AliZDCCalibData.h
1 #ifndef ALIZDCCALIBDATA_H
2 #define ALIZDCCALIBDATA_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 ////////////////////////////////////////////////
8 //  class for ZDC calibration                 //
9 ////////////////////////////////////////////////
10
11 #include "TNamed.h"
12 #include "TH1.h"
13 #include "AliZDC.h"
14
15 class AliZDCCalibData: public TNamed {
16
17  public:
18   AliZDCCalibData();
19   AliZDCCalibData(const char* name);
20   virtual ~AliZDCCalibData();
21   void Reset();
22   virtual void  Print() const; 
23   //
24   Float_t  GetMeanPed(Int_t channel)    const {return fMeanPedestal[channel];}
25   Float_t* GetMeanPed()   const {return (float*)fMeanPedestal;}
26   Float_t  GetEnCalib(Int_t channel)    const {return fEnCalibration[channel];}
27   Float_t* GetEnCalib()   const {return (float*)fEnCalibration;}
28   //
29   void     SetMeanPed(Float_t val, Int_t channel) {fMeanPedestal[channel]=val;}
30   void     SetMeanPed(Float_t* MeanPed);
31   void     SetEnCalib(Float_t val, Int_t channel) {fEnCalibration[channel]=val;}
32   void     SetEnCalib(Float_t* EnCalib);
33   //
34   void     PrepHistos();
35   TH1F*    GetHistMeanPed() const {return fHistMeanPed;}
36   void     CleanHistos();
37
38  protected:
39   Float_t  fMeanPedestal[47];   // Mean pedestal values
40   Float_t  fEnCalibration[4];   // Coeff. for energy calibration (4 different ZDC's?)
41   TH1F*    fHistMeanPed;        //! histos for drawing mean pedestals
42   //
43   ClassDef(AliZDCCalibData,1)    // ZDC Sensor Calibration data
44 };
45
46 #endif