Updated calibration (Brigitte)
[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;}
ee700a83 30 Float_t GetGain(Int_t channel) const {return fGain[channel];}
31 Float_t* GetGain() const {return (float*)fGain;}
fae0e0c0 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
ee700a83 38 void SetPedestal(Float_t val, Int_t channel) {fPedestal[channel]=val;}
39 void SetPedestal(Float_t* Pedestal);
fae0e0c0 40 void SetSigma(Float_t val, Int_t channel) {fSigma[channel]=val;}
41 void SetSigma(Float_t* Sigma);
ee700a83 42 void SetGain(Float_t val, Int_t channel) {fGain[channel]=val;}
43 void SetGain(Float_t* Gain);
44
fae0e0c0 45 void SetTimeOffset(Float_t val, Int_t channel) {fTimeOffset[channel]=val;}
46 void SetTimeOffset(Float_t* TimeOffset);
47 void SetTimeGain(Float_t val, Int_t channel) {fTimeGain[channel]=val;}
48 void SetTimeGain(Float_t* TimeGain);
49
ee700a83 50 protected:
fae0e0c0 51 Float_t fPedestal[128]; // Mean pedestal values
52 Float_t fSigma[128]; // Sigmas of pedestal peaks
53 Float_t fGain[128]; // PM gains
54
55 Float_t fTimeOffset[64];
56 Float_t fTimeGain[64];
ee700a83 57
58 ClassDef(AliVZEROCalibData,1) // VZERO Calibration data
59};
60
61#endif