Changes in AliZDCCalibData class
[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 #include "AliCDBEntry.h"
15
16 class AliZDCCalibData: public TNamed {
17
18  public:
19   AliZDCCalibData();
20   AliZDCCalibData(const char* name);
21   AliZDCCalibData(const AliZDCCalibData &calibda);
22   AliZDCCalibData& operator= (const AliZDCCalibData &calibda);
23   virtual ~AliZDCCalibData();
24   void Reset();
25   virtual void  Print(Option_t *) const; 
26   //
27   Float_t  GetMeanPed(Int_t channel)    const {return fMeanPedestal[channel];}
28   Float_t* GetMeanPed()   const {return (float*)fMeanPedestal;}
29   Float_t  GetOOTPed(Int_t channel)     const {return fOOTPedestal[channel];}
30   Float_t* GetOOTPed()   const {return (float*)fOOTPedestal;}
31   Float_t  GetEnCalib(Int_t channel)    const {return fEnCalibration[channel];}
32   Float_t* GetEnCalib()   const {return (float*)fEnCalibration;}
33   //
34   void     SetMeanPed(Int_t channel, Float_t val) {fMeanPedestal[channel]=val;}
35   void     SetMeanPed(Float_t* MeanPed);
36   void     SetOOTPed(Int_t channel, Float_t val) {fOOTPedestal[channel]=val;}
37   void     SetOOTPed(Float_t* OOTPed);
38   void     SetEnCalib(Int_t channel, Float_t val) {fEnCalibration[channel]=val;}
39   void     SetEnCalib(Float_t* EnCalib);
40   //
41   void     PrepHistos();
42   TH1F*    GetHistMeanPed() const {return fHistMeanPed;}
43   void     CleanHistos();
44
45  protected:
46   Float_t  fMeanPedestal[47];   // Mean pedestal values (0 = high gain, 1 = low gain)
47   Float_t  fOOTPedestal[44];    // "Out of Time" pedestal values
48   Float_t  fEnCalibration[6];   // Coeff. for energy calibration
49   TH1F*    fHistMeanPed;        //! histos for drawing mean pedestals
50   //
51   ClassDef(AliZDCCalibData,1)    // ZDC  Calibration data
52 };
53
54 #endif