Enalrged size of char arrays
[u/mrichter/AliRoot.git] / VZERO / AliVZEROCalibData.h
CommitLineData
ee700a83 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
16class 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();
fae0e0c0 24 void Reset();
ee700a83 25
26 Float_t GetPedestal(Int_t channel) const {return fPedestal[channel];}
27 Float_t* GetPedestal() const {return (float*)fPedestal;}
fae0e0c0 28 Float_t GetSigma(Int_t channel) const {return fSigma[channel];}
29 Float_t* GetSigma() const {return (float*)fSigma;}
60a8e5df 30 Float_t GetADCmean(Int_t channel) const {return fADCmean[channel];}
31 Float_t* GetADCmean() const {return (float*)fADCmean;}
3bdfb56f 32 Float_t GetADCsigma(Int_t channel) const {return fADCsigma[channel];}
33 Float_t* GetADCsigma() const {return (float*)fADCsigma;}
60a8e5df 34 Float_t GetMeanHV(Int_t channel) const {return fMeanHV[channel];}
35 Float_t* GetMeanHV() const {return (float*)fMeanHV;}
36 Float_t GetWidthHV(Int_t channel) const {return fWidthHV[channel];}
37 Float_t* GetWidthHV() const {return (float*)fWidthHV;}
38
39 Float_t GetGain(Int_t channel) const {return fGain[channel];}
40 Float_t* GetGain() const {return (float*)fGain;}
fae0e0c0 41 Float_t GetTimeOffset(Int_t channel) const {return fTimeOffset[channel];}
42 Float_t* GetTimeOffset() const {return (float*)fTimeOffset;}
43 Float_t GetTimeGain(Int_t channel) const {return fTimeGain[channel];}
44 Float_t* GetTimeGain() const {return (float*)fTimeGain;}
60a8e5df 45
ee700a83 46 void SetPedestal(Float_t val, Int_t channel) {fPedestal[channel]=val;}
47 void SetPedestal(Float_t* Pedestal);
fae0e0c0 48 void SetSigma(Float_t val, Int_t channel) {fSigma[channel]=val;}
49 void SetSigma(Float_t* Sigma);
60a8e5df 50 void SetADCmean(Float_t val, Int_t channel) {fADCmean[channel]=val;}
51 void SetADCmean(Float_t* ADCmean);
3bdfb56f 52 void SetADCsigma(Float_t val, Int_t channel) {fADCsigma[channel]=val;}
53 void SetADCsigma(Float_t* ADCsigma);
60a8e5df 54 void SetMeanHV(Float_t val, Int_t channel) {fMeanHV[channel]=val;}
55 void SetMeanHV(Float_t* MeanHV);
56 void SetWidthHV(Float_t val, Int_t channel) {fWidthHV[channel]=val;}
57 void SetWidthHV(Float_t* WidthHV);
58
59 void SetGain(Float_t val, Int_t channel) {fGain[channel]=val;}
60 void SetGain(Float_t* Gain);
fae0e0c0 61 void SetTimeOffset(Float_t val, Int_t channel) {fTimeOffset[channel]=val;}
62 void SetTimeOffset(Float_t* TimeOffset);
63 void SetTimeGain(Float_t val, Int_t channel) {fTimeGain[channel]=val;}
64 void SetTimeGain(Float_t* TimeGain);
706506da 65
66 Float_t GetMIPperADC(Int_t channel) const;
67
ee700a83 68 protected:
fae0e0c0 69 Float_t fPedestal[128]; // Mean pedestal values
70 Float_t fSigma[128]; // Sigmas of pedestal peaks
60a8e5df 71 Float_t fADCmean[128]; // ADC mean values
3bdfb56f 72 Float_t fADCsigma[128]; // ADC sigma values
60a8e5df 73 Float_t fMeanHV[64]; // Mean PMT HV needed to compute MIP value
74 Float_t fWidthHV[64]; // Width of the PMT HV
fae0e0c0 75
60a8e5df 76 Float_t fGain[128]; // Gain factor used in digitization only
fae0e0c0 77 Float_t fTimeOffset[64];
78 Float_t fTimeGain[64];
ee700a83 79
74385aaf 80 ClassDef(AliVZEROCalibData,2) // VZERO Calibration data
ee700a83 81};
82
83#endif