Removed a std::cout statement
[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
d7a5c700 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
ee700a83 45 void SetPedestal(Float_t val, Int_t channel) {fPedestal[channel]=val;}
46 void SetPedestal(Float_t* Pedestal);
fae0e0c0 47 void SetSigma(Float_t val, Int_t channel) {fSigma[channel]=val;}
48 void SetSigma(Float_t* Sigma);
ee700a83 49 void SetGain(Float_t val, Int_t channel) {fGain[channel]=val;}
50 void SetGain(Float_t* Gain);
51
fae0e0c0 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);
d7a5c700 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
fae0e0c0 64
ee700a83 65 protected:
fae0e0c0 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];
ee700a83 72
d7a5c700 73 Float_t fMeanHV[64]; // Mean PMT HV
74 Float_t fWidthHV[64]; // Width of the PMT HV
75
74385aaf 76 ClassDef(AliVZEROCalibData,2) // VZERO Calibration data
ee700a83 77};
78
79#endif