PHOS module
[u/mrichter/AliRoot.git] / PHOS / PHOSbase / 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;
0580b463 28 Float_t GetLGTimeShiftEmc(Int_t module, Int_t column, Int_t row) const;
bafc1087 29 Int_t GetAltroOffsetEmc(Int_t module, Int_t column, Int_t row) const;
6f47f50d 30 Float_t GetSampleTimeStep() const ;
fc6706cb 31 //
32 void SetADCchannelEmc(Int_t module, Int_t column, Int_t row, Float_t value);
33 void SetADCpedestalEmc(Int_t module, Int_t column, Int_t row, Float_t value);
e3310625 34 void SetHighLowRatioEmc(Int_t module, Int_t column, Int_t row, Float_t value);
35 void SetTimeShiftEmc(Int_t module, Int_t column, Int_t row, Float_t value);
0580b463 36 void SetLGTimeShiftEmc(Int_t module, Int_t column, Int_t row, Float_t value);
bafc1087 37 void SetAltroOffsetEmc(Int_t module, Int_t column, Int_t row, Int_t value);
6f47f50d 38 void SetSampleTimeStep(Float_t step) ;
d5b302a6 39 //
40 Float_t GetADCchannelEmcDecalib(Int_t module, Int_t column, Int_t row) const;
41 void SetADCchannelEmcDecalib(Int_t module, Int_t column, Int_t row, Float_t value);
42
43protected:
6f47f50d 44 Float_t fSampleTimeStep ; // Conversion between ALTRO sample time step and seconds
fc6706cb 45 Float_t fADCchannelEmc[5][56][64] ; // width of one EMC ADC channel in GeV ([mod][col][row])
46 Float_t fADCpedestalEmc[5][56][64] ; // value of the EMC ADC pedestal ([mod][col][row])
e3310625 47 Float_t fHighLowRatioEmc[5][56][64]; // ratio of High/Low gain ([mod][col][row])
48 Float_t fTimeShiftEmc[5][56][64] ; // channel-by-channel t0 shift ([mod][col][row])
0580b463 49 Float_t fLGTimeShiftEmc[5][56][64] ; // channel-by-channel t0 shift ([mod][col][row])
bafc1087 50 UInt_t fAltroOffsets[5][56][64] ; // channel-by-channel offsets udes in ZS
d5b302a6 51 Float_t fDecal[5][56][64] ; // Random decalibrations O(1). Used in simulation.
fc6706cb 52 //
0580b463 53 ClassDef(AliPHOSEmcCalibData,6) // PHOS EMC calibration data
fc6706cb 54};
55
56#endif