]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ZDC/AliZDCEnCalib.h
Code change + bug in 1 DQM shifter plot fixed
[u/mrichter/AliRoot.git] / ZDC / AliZDCEnCalib.h
1 #ifndef ALIZDCENCALIB_H
2 #define ALIZDCENCALIB_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 -> CALIBCOEFF   //
9 ////////////////////////////////////////////////
10
11 #include "TNamed.h"
12 #include "AliCDBEntry.h"
13
14 class AliZDC;
15
16 class AliZDCEnCalib: public TNamed {
17
18  public:
19   AliZDCEnCalib();
20   AliZDCEnCalib(const char* name);
21   AliZDCEnCalib(const AliZDCEnCalib &calibda);
22   AliZDCEnCalib& operator= (const AliZDCEnCalib &calibda);
23   virtual ~AliZDCEnCalib();
24   void Reset();
25   virtual void  Print(Option_t *) const; 
26   //
27   Float_t  GetEnCalib(Int_t channel)    const {return fEnCalibration[channel];}
28   Float_t* GetEnCalib()                 const {return (float*)fEnCalibration;}
29
30   void  SetEnCalib(Int_t channel, Float_t val) {fEnCalibration[channel]=val;}
31   void  SetEnCalib(Float_t* EnCalib);
32   
33  protected:
34   // --- E calibration
35   Float_t  fEnCalibration[6];    // Coeff. for energy calibration
36   //
37   ClassDef(AliZDCEnCalib,3)    // ZDC calibration calibration data
38 };
39
40 #endif