Modified files to use constants declared in the
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSEmcCalibData.h
CommitLineData
8633654e 1
228cb536 2#ifndef ALIHLTPHOSEMCCALIBDATA_H
3#define ALIHLTPHOSEMCCALIBDATA_H
4
5/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
7
8////////////////////////////////////////////////
9// class for EMC calibration //
10////////////////////////////////////////////////
11
12#include "TNamed.h"
cd906859 13#include "AliHLTPHOSCommonDefs.h"
dabc4c35 14#include "AliHLTPHOSConstants.h"
228cb536 15
16
dabc4c35 17// PhosHLTConst
18using namespace PhosHLTConst;
19
228cb536 20class AliHLTPHOSEmcCalibData: public TNamed {
21
22 public:
23 AliHLTPHOSEmcCalibData();
24 AliHLTPHOSEmcCalibData(const char* name);
25 AliHLTPHOSEmcCalibData(const AliHLTPHOSEmcCalibData &calibda);
26 AliHLTPHOSEmcCalibData& operator= (const AliHLTPHOSEmcCalibData &calibda);
27 virtual ~AliHLTPHOSEmcCalibData();
28 void Reset();
29 virtual void Print(Option_t *option = "") const;
30 Float_t GetADCchannelEnergy(Int_t module, Int_t column, Int_t row, Int_t gain) const;
31 Float_t GetADCpedestalEmcMeasured(Int_t module, Int_t column, Int_t row, Int_t gain) const;
32 void SetADCchannelEnergy(Int_t module, Int_t column, Int_t row, Int_t gain, Float_t value);
33 void SetADCpedestalEmcMeasured(Int_t module, Int_t column, Int_t row, Int_t gain, Float_t value);
34 void MakeADCpedestalCorrectionTable();
35 protected:
bde48b84 36 Float_t fADCchannelEnergy[N_MODULES][N_COLUMNS_MOD][N_ROWS_MOD][N_GAINS] ; /**<width of one EMC ADC channel in GeV*/
37 Float_t fADCpedestalEmcMeasured[N_MODULES][N_COLUMNS_MOD][N_ROWS_MOD][N_GAINS] ; /**<value of the EMC ADC pedestal measured from calibration run*/
8633654e 38 Int_t fADCpedestalAltroReg[N_MODULES][N_COLUMNS_MOD][N_ROWS_MOD][N_GAINS] ; /**<value of the EMC ADC pedestal subtraction values stored in the ALTRO registers*/
bde48b84 39 Float_t fADCpedestalCorrectionTable[N_MODULES][N_COLUMNS_MOD][N_ROWS_MOD][N_GAINS] ; /**<value of the EMC ADC pedestal values to be subtracted form the decoed cahnnel data (= fADCpedestalEmcMeasured - fADCpedestalAltroReg)*/
228cb536 40
41 ClassDef(AliHLTPHOSEmcCalibData,1) // PHOS EMC calibration data
42};
43
44#endif