Correct overloading of virtual functions in the derived classes (icc)
[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   AliZDCCalibData(const AliZDCCalibData &calibda);
21   AliZDCCalibData& operator= (const AliZDCCalibData &calibda);
22   virtual ~AliZDCCalibData();
23   void Reset();
24   virtual void  Print(Option_t *) const; 
25   //
26   Float_t  GetMeanPed(Int_t channel)    const {return fMeanPedestal[channel];}
27   Float_t* GetMeanPed()   const {return (float*)fMeanPedestal;}
28   Float_t  GetEnCalib(Int_t channel)    const {return fEnCalibration[channel];}
29   Float_t* GetEnCalib()   const {return (float*)fEnCalibration;}
30   //
31   void     SetMeanPed(Float_t val, Int_t channel) {fMeanPedestal[channel]=val;}
32   void     SetMeanPed(Float_t* MeanPed);
33   void     SetEnCalib(Float_t val, Int_t channel) {fEnCalibration[channel]=val;}
34   void     SetEnCalib(Float_t* EnCalib);
35   //
36   void     PrepHistos();
37   TH1F*    GetHistMeanPed() const {return fHistMeanPed;}
38   void     CleanHistos();
39
40  protected:
41   Float_t  fMeanPedestal[47];   // Mean pedestal values
42   Float_t  fEnCalibration[4];   // Coeff. for energy calibration (4 different ZDC's?)
43   TH1F*    fHistMeanPed;        //! histos for drawing mean pedestals
44   //
45   ClassDef(AliZDCCalibData,1)    // ZDC Sensor Calibration data
46 };
47
48 #endif