]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ZDC/AliZDCTDCCalib.h
Actually this IS needed to work offline (with Offline created ESDs)
[u/mrichter/AliRoot.git] / ZDC / AliZDCTDCCalib.h
1 #ifndef ALIZDCTDCCALIB_H
2 #define ALIZDCTDCCALIB_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 -> TDC mean values  //
9 ////////////////////////////////////////////////////
10
11 #include "TNamed.h"
12 #include "AliCDBEntry.h"
13
14 class AliZDC;
15
16 class AliZDCTDCCalib: public TNamed {
17
18  public:
19   AliZDCTDCCalib();
20   AliZDCTDCCalib(const char* name);
21   AliZDCTDCCalib(const AliZDCTDCCalib &calibda);
22   AliZDCTDCCalib& operator= (const AliZDCTDCCalib &calibda);
23   virtual ~AliZDCTDCCalib();
24   void Reset();
25   virtual void  Print(Option_t *) const; 
26
27   Float_t GetMeanTDC(Int_t ch) const 
28         {if(ch<6) return fMeanTDC[ch];
29          else return 0.;};
30   Float_t GetWidthTDC(Int_t ch) const 
31         {if(ch<6) return fWidthTDC[ch];
32          else return 0.;};
33          
34   void SetMeanTDC(Int_t ch, Float_t val) {fMeanTDC[ch]=val;}
35   void SetWidthTDC(Int_t ch, Float_t val) {fWidthTDC[ch]=val;}
36   void SetMeanTDC(Float_t* mean);
37   void SetWidthTDC(Float_t* width);
38   
39  protected:
40   // --- Pedestals
41   Float_t  fMeanTDC[6];         // Mean TDC values 
42   Float_t  fWidthTDC[6];        // TDC widths 
43   //
44   ClassDef(AliZDCTDCCalib,1)    // ZDC TDC calibration data
45 };
46
47 #endif