]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIVZEROCALIBDATA_H | |
2 | #define ALIVZEROCALIBDATA_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 | // // | |
9 | // class for VZERO calibration // | |
10 | // // | |
11 | //////////////////////////////////////////////// | |
12 | ||
13 | #include "TNamed.h" | |
14 | #include "AliVZERO.h" | |
15 | ||
16 | class AliVZEROCalibData: public TNamed { | |
17 | ||
18 | public: | |
19 | AliVZEROCalibData(); | |
20 | AliVZEROCalibData(const char* name); | |
21 | AliVZEROCalibData(const AliVZEROCalibData &calibda); | |
22 | AliVZEROCalibData& operator= (const AliVZEROCalibData &calibda); | |
23 | virtual ~AliVZEROCalibData(); | |
24 | void Reset(); | |
25 | ||
26 | Float_t GetPedestal(Int_t channel) const {return fPedestal[channel];} | |
27 | Float_t* GetPedestal() const {return (float*)fPedestal;} | |
28 | Float_t GetSigma(Int_t channel) const {return fSigma[channel];} | |
29 | Float_t* GetSigma() const {return (float*)fSigma;} | |
30 | Float_t GetGain(Int_t channel) const {return fGain[channel];} | |
31 | Float_t* GetGain() const {return (float*)fGain;} | |
32 | ||
33 | Float_t GetTimeOffset(Int_t channel) const {return fTimeOffset[channel];} | |
34 | Float_t* GetTimeOffset() const {return (float*)fTimeOffset;} | |
35 | Float_t GetTimeGain(Int_t channel) const {return fTimeGain[channel];} | |
36 | Float_t* GetTimeGain() const {return (float*)fTimeGain;} | |
37 | ||
38 | Float_t GetMeanHV(Int_t channel) const {return fMeanHV[channel];} | |
39 | Float_t* GetMeanHV() const {return (float*)fMeanHV;} | |
40 | ||
41 | Float_t GetWidthHV(Int_t channel) const {return fWidthHV[channel];} | |
42 | Float_t* GetWidthHV() const {return (float*)fWidthHV;} | |
43 | ||
44 | ||
45 | void SetPedestal(Float_t val, Int_t channel) {fPedestal[channel]=val;} | |
46 | void SetPedestal(Float_t* Pedestal); | |
47 | void SetSigma(Float_t val, Int_t channel) {fSigma[channel]=val;} | |
48 | void SetSigma(Float_t* Sigma); | |
49 | void SetGain(Float_t val, Int_t channel) {fGain[channel]=val;} | |
50 | void SetGain(Float_t* Gain); | |
51 | ||
52 | void SetTimeOffset(Float_t val, Int_t channel) {fTimeOffset[channel]=val;} | |
53 | void SetTimeOffset(Float_t* TimeOffset); | |
54 | void SetTimeGain(Float_t val, Int_t channel) {fTimeGain[channel]=val;} | |
55 | void SetTimeGain(Float_t* TimeGain); | |
56 | ||
57 | void SetMeanHV(Float_t val, Int_t channel) {fMeanHV[channel]=val;} | |
58 | void SetMeanHV(Float_t* MeanHVs); | |
59 | ||
60 | void SetWidthHV(Float_t val, Int_t channel) {fWidthHV[channel]=val;} | |
61 | void SetWidthHV(Float_t* WidthHVs); | |
62 | ||
63 | ||
64 | ||
65 | protected: | |
66 | Float_t fPedestal[128]; // Mean pedestal values | |
67 | Float_t fSigma[128]; // Sigmas of pedestal peaks | |
68 | Float_t fGain[128]; // PM gains | |
69 | ||
70 | Float_t fTimeOffset[64]; | |
71 | Float_t fTimeGain[64]; | |
72 | ||
73 | Float_t fMeanHV[64]; // Mean PMT HV | |
74 | Float_t fWidthHV[64]; // Width of the PMT HV | |
75 | ||
76 | ClassDef(AliVZEROCalibData,1) // VZERO Calibration data | |
77 | }; | |
78 | ||
79 | #endif |