New version provided by Arcelli
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSEmcCalibData.h
CommitLineData
228cb536 1#ifndef ALIHLTPHOSEMCCALIBDATA_H
2#define ALIHLTPHOSEMCCALIBDATA_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"
cd906859 12#include "AliHLTPHOSCommonDefs.h"
228cb536 13
14
15class AliHLTPHOSEmcCalibData: public TNamed {
16
17 public:
18 AliHLTPHOSEmcCalibData();
19 AliHLTPHOSEmcCalibData(const char* name);
20 AliHLTPHOSEmcCalibData(const AliHLTPHOSEmcCalibData &calibda);
21 AliHLTPHOSEmcCalibData& operator= (const AliHLTPHOSEmcCalibData &calibda);
22 virtual ~AliHLTPHOSEmcCalibData();
23 void Reset();
24 virtual void Print(Option_t *option = "") const;
25 Float_t GetADCchannelEnergy(Int_t module, Int_t column, Int_t row, Int_t gain) const;
26 Float_t GetADCpedestalEmcMeasured(Int_t module, Int_t column, Int_t row, Int_t gain) const;
27 void SetADCchannelEnergy(Int_t module, Int_t column, Int_t row, Int_t gain, Float_t value);
28 void SetADCpedestalEmcMeasured(Int_t module, Int_t column, Int_t row, Int_t gain, Float_t value);
29 void MakeADCpedestalCorrectionTable();
30 protected:
31 Float_t fADCchannelEnergy[PHOS_MODULES][PHOS_COLUMNS][PHOS_ROWS][PHOS_GAINS] ; /**<width of one EMC ADC channel in GeV*/
32 Float_t fADCpedestalEmcMeasured[PHOS_MODULES][PHOS_COLUMNS][PHOS_ROWS][PHOS_GAINS] ; /**<value of the EMC ADC pedestal measured from calibration run*/
33 Int_t fADCpedestalAltroReg[PHOS_MODULES][PHOS_COLUMNS][PHOS_ROWS][PHOS_GAINS] ; /**<value of the EMC ADC pedestal subtraction values stored in the ALTRO registers*/
34 Float_t fADCpedestalCorrectionTable[PHOS_MODULES][PHOS_COLUMNS][PHOS_ROWS][PHOS_GAINS] ; /**<value of the EMC ADC pedestal values to be subtracted form the decoed cahnnel data (= fADCpedestalEmcMeasured - fADCpedestalAltroReg)*/
35
36 ClassDef(AliHLTPHOSEmcCalibData,1) // PHOS EMC calibration data
37};
38
39#endif