]>
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 | // |
8831501a | 27 | Float_t GetMeanPed(Int_t channel) const {return fMeanPedestal[channel];} |
28 | Float_t* GetMeanPed() const {return (float*)fMeanPedestal;} | |
29 | Float_t GetMeanPedWidth(Int_t channel) const {return fMeanPedWidth[channel];} | |
30 | Float_t* GetMeanPedWidth() const {return (float*)fMeanPedWidth;} | |
31 | Float_t GetOOTPed(Int_t channel) const {return fOOTPedestal[channel];} | |
32 | Float_t* GetOOTPed() const {return (float*)fOOTPedestal;} | |
33 | Float_t GetOOTPedWidth(Int_t channel) const {return fOOTPedWidth[channel];} | |
34 | Float_t* GetOOTPedWidth() const {return (float*)fOOTPedWidth;} | |
35 | Float_t GetPedCorrCoeff0(Int_t channel) const {return fPedCorrCoeff[0][channel];} | |
36 | Float_t GetPedCorrCoeff1(Int_t channel) const {return fPedCorrCoeff[1][channel];} | |
37 | Float_t* GetPedCorrCoeff() const {return (float*)fPedCorrCoeff;} | |
38 | // | |
35833839 | 39 | Float_t GetEnCalib(Int_t channel) const {return fEnCalibration[channel];} |
8831501a | 40 | Float_t* GetEnCalib() const {return (float*)fEnCalibration;} |
41 | // | |
42 | void SetMeanPed(Int_t channel, Float_t val) {fMeanPedestal[channel]=val;} | |
43 | void SetMeanPed(Float_t* MeanPed); | |
44 | void SetMeanPedWidth(Int_t channel, Float_t val) {fMeanPedWidth[channel]=val;} | |
45 | void SetMeanPedWidth(Float_t* MeanPedWidth); | |
46 | void SetOOTPed(Int_t channel, Float_t val) {fOOTPedestal[channel]=val;} | |
47 | void SetOOTPed(Float_t* OOTPed); | |
48 | void SetOOTPedWidth(Int_t channel, Float_t val) {fOOTPedWidth[channel]=val;} | |
49 | void SetOOTPedWidth(Float_t* OOTPedWidth); | |
50 | void SetPedCorrCoeff(Int_t channel, Float_t valCoeff0, Float_t valCoeff1) | |
51 | {fPedCorrCoeff[0][channel]=valCoeff0; fPedCorrCoeff[1][channel]=valCoeff1;} | |
52 | void SetPedCorrCoeff(Float_t* PedCorrCoeff0, Float_t* PedCorrCoeff1); | |
8af17dba | 53 | // |
8831501a | 54 | void SetEnCalib(Int_t channel, Float_t val) {fEnCalibration[channel]=val;} |
55 | void SetEnCalib(Float_t* EnCalib); | |
8af17dba | 56 | // |
8831501a | 57 | // void PrepHistos(); |
58 | // TH1F* GetHistMeanPed() const {return fHistMeanPed;} | |
59 | // void CleanHistos(); | |
35833839 | 60 | |
8af17dba | 61 | protected: |
8831501a | 62 | // --- Pedestals |
63 | Float_t fMeanPedestal[47]; // Mean pedestal values | |
64 | Float_t fMeanPedWidth[47]; // Mean pedestal values | |
65 | Float_t fOOTPedestal[44]; // "Out of Time" pedestal values | |
66 | Float_t fOOTPedWidth[44]; // "Out of Time" pedestal values | |
67 | Float_t fPedCorrCoeff[2][44]; // Fit of correlation in-time vs. out-of-time | |
68 | // --- E calibration | |
69 | Float_t fEnCalibration[6]; // Coeff. for energy calibration | |
70 | //TH1F* fHistMeanPed; //! histos for drawing mean pedestals | |
8af17dba | 71 | // |
8831501a | 72 | ClassDef(AliZDCCalibData,3) // ZDC Calibration data |
8af17dba | 73 | }; |
74 | ||
75 | #endif |