coverity fix
[u/mrichter/AliRoot.git] / PHOS / AliPHOSEmcCalibData.h
CommitLineData
fc6706cb 1#ifndef ALIPHOSEMCCALIBDATA_H
2#define ALIPHOSEMCCALIBDATA_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// class for EMC calibration //
9////////////////////////////////////////////////
10
11#include "TNamed.h"
12
13class AliPHOSEmcCalibData: public TNamed {
14
15 public:
16 AliPHOSEmcCalibData();
17 AliPHOSEmcCalibData(const char* name);
18 AliPHOSEmcCalibData(const AliPHOSEmcCalibData &calibda);
19 AliPHOSEmcCalibData& operator= (const AliPHOSEmcCalibData &calibda);
20 virtual ~AliPHOSEmcCalibData();
21 void Reset();
22 virtual void Print(Option_t *option = "") const;
23 //
24 Float_t GetADCchannelEmc(Int_t module, Int_t column, Int_t row) const;
25 Float_t GetADCpedestalEmc(Int_t module, Int_t column, Int_t row) const;
e3310625 26 Float_t GetHighLowRatioEmc(Int_t module, Int_t column, Int_t row) const;
27 Float_t GetTimeShiftEmc(Int_t module, Int_t column, Int_t row) const;
bafc1087 28 Int_t GetAltroOffsetEmc(Int_t module, Int_t column, Int_t row) const;
6f47f50d 29 Float_t GetSampleTimeStep() const ;
fc6706cb 30 //
31 void SetADCchannelEmc(Int_t module, Int_t column, Int_t row, Float_t value);
32 void SetADCpedestalEmc(Int_t module, Int_t column, Int_t row, Float_t value);
e3310625 33 void SetHighLowRatioEmc(Int_t module, Int_t column, Int_t row, Float_t value);
34 void SetTimeShiftEmc(Int_t module, Int_t column, Int_t row, Float_t value);
bafc1087 35 void SetAltroOffsetEmc(Int_t module, Int_t column, Int_t row, Int_t value);
6f47f50d 36 void SetSampleTimeStep(Float_t step) ;
d5b302a6 37 //
38 Float_t GetADCchannelEmcDecalib(Int_t module, Int_t column, Int_t row) const;
39 void SetADCchannelEmcDecalib(Int_t module, Int_t column, Int_t row, Float_t value);
40
41protected:
6f47f50d 42 Float_t fSampleTimeStep ; // Conversion between ALTRO sample time step and seconds
fc6706cb 43 Float_t fADCchannelEmc[5][56][64] ; // width of one EMC ADC channel in GeV ([mod][col][row])
44 Float_t fADCpedestalEmc[5][56][64] ; // value of the EMC ADC pedestal ([mod][col][row])
e3310625 45 Float_t fHighLowRatioEmc[5][56][64]; // ratio of High/Low gain ([mod][col][row])
46 Float_t fTimeShiftEmc[5][56][64] ; // channel-by-channel t0 shift ([mod][col][row])
bafc1087 47 UInt_t fAltroOffsets[5][56][64] ; // channel-by-channel offsets udes in ZS
d5b302a6 48 Float_t fDecal[5][56][64] ; // Random decalibrations O(1). Used in simulation.
fc6706cb 49 //
d5b302a6 50 ClassDef(AliPHOSEmcCalibData,5) // PHOS EMC calibration data
fc6706cb 51};
52
53#endif