Data calibration header
[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();
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 GetGain(Int_t channel) const {return fGain[channel];}
29 Float_t* GetGain() const {return (float*)fGain;}
30 //
31 void SetPedestal(Float_t val, Int_t channel) {fPedestal[channel]=val;}
32 void SetPedestal(Float_t* Pedestal);
33 void SetGain(Float_t val, Int_t channel) {fGain[channel]=val;}
34 void SetGain(Float_t* Gain);
35
36 protected:
37 Float_t fPedestal[80]; // Mean pedestal values
38 Float_t fGain[80]; // PM gains
39
40 ClassDef(AliVZEROCalibData,1) // VZERO Calibration data
41};
42
43#endif