Fix by Ruben
[u/mrichter/AliRoot.git] / ZDC / AliZDCTDCCalib.h
CommitLineData
27d1ff1f 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
14class AliZDC;
15
16class 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];
d992ff39 29 else return 0.;};
27d1ff1f 30 Float_t GetWidthTDC(Int_t ch) const
31 {if(ch<6) return fWidthTDC[ch];
d992ff39 32 else return 0.;};
27d1ff1f 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