]>
Commit | Line | Data |
---|---|---|
8af17dba | 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" | |
48642b09 | 14 | #include "AliCDBEntry.h" |
8af17dba | 15 | |
35833839 | 16 | class AliZDCCalibData: public TNamed { |
17 | ||
8af17dba | 18 | public: |
19 | AliZDCCalibData(); | |
20 | AliZDCCalibData(const char* name); | |
8599f95e | 21 | AliZDCCalibData(const AliZDCCalibData &calibda); |
22 | AliZDCCalibData& operator= (const AliZDCCalibData &calibda); | |
8af17dba | 23 | virtual ~AliZDCCalibData(); |
24 | void Reset(); | |
5bc762ca | 25 | virtual void Print(Option_t *) const; |
8af17dba | 26 | // |
35833839 | 27 | Float_t GetMeanPed(Int_t channel) const {return fMeanPedestal[channel];} |
28 | Float_t* GetMeanPed() const {return (float*)fMeanPedestal;} | |
72bde173 | 29 | Float_t GetOOTPed(Int_t channel) const {return fOOTPedestal[channel];} |
30 | Float_t* GetOOTPed() const {return (float*)fOOTPedestal;} | |
35833839 | 31 | Float_t GetEnCalib(Int_t channel) const {return fEnCalibration[channel];} |
32 | Float_t* GetEnCalib() const {return (float*)fEnCalibration;} | |
8af17dba | 33 | // |
78d18275 | 34 | void SetMeanPed(Int_t channel, Float_t val) {fMeanPedestal[channel]=val;} |
8af17dba | 35 | void SetMeanPed(Float_t* MeanPed); |
72bde173 | 36 | void SetOOTPed(Int_t channel, Float_t val) {fOOTPedestal[channel]=val;} |
37 | void SetOOTPed(Float_t* OOTPed); | |
78d18275 | 38 | void SetEnCalib(Int_t channel, Float_t val) {fEnCalibration[channel]=val;} |
8af17dba | 39 | void SetEnCalib(Float_t* EnCalib); |
8af17dba | 40 | // |
41 | void PrepHistos(); | |
42 | TH1F* GetHistMeanPed() const {return fHistMeanPed;} | |
43 | void CleanHistos(); | |
35833839 | 44 | |
8af17dba | 45 | protected: |
72bde173 | 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 | |
8af17dba | 49 | TH1F* fHistMeanPed; //! histos for drawing mean pedestals |
50 | // | |
394d8216 | 51 | ClassDef(AliZDCCalibData,2) // ZDC Calibration data |
8af17dba | 52 | }; |
53 | ||
54 | #endif |