proper linking for libHLTrec.so
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALCalibData.h
CommitLineData
f565d89d 1#ifndef ALIEMCALCALIBDATA_H
2#define ALIEMCALCALIBDATA_H
3
4/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6
7/* $Id$ */
8
9////////////////////////////////////////////////
df5cea6b 10//
11// class for EMCAL calibration //
12//
f565d89d 13////////////////////////////////////////////////
14
15#include "TNamed.h"
0c5b726e 16#include "AliEMCALGeoParams.h"
f565d89d 17
18class AliEMCALCalibData: public TNamed {
19
20 public:
aaa41982 21
f565d89d 22 AliEMCALCalibData();
23 AliEMCALCalibData(const char* name);
24 AliEMCALCalibData(const AliEMCALCalibData &calibda);
25 AliEMCALCalibData& operator= (const AliEMCALCalibData &calibda);
aaa41982 26 virtual ~AliEMCALCalibData() { ; }
27
28 void Reset();
29 void Print(Option_t *option = "") const;
df5cea6b 30
63b315c5 31 // All indexes start from 0!
df5cea6b 32 Float_t GetADCchannel (Int_t module, Int_t column, Int_t row) const;
33 Float_t GetADCchannelDecal (Int_t module, Int_t column, Int_t row) const;
34 Float_t GetADCpedestal (Int_t module, Int_t column, Int_t row) const;
df5cea6b 35 Float_t GetTimeChannelDecal(Int_t module, Int_t column, Int_t row) const;
aaa41982 36 Float_t GetTimeChannel (Int_t module, Int_t column, Int_t row, Int_t bc) const;
63c22917 37
c7e54b0e 38 Float_t GetADCchannelRef () const { return fADCchannelRef ; }
df5cea6b 39
aaa41982 40 void SetADCchannel (Int_t module, Int_t column, Int_t row, Float_t value);
41 void SetADCchannelDecal (Int_t module, Int_t column, Int_t row, Float_t value);
42 void SetADCpedestal (Int_t module, Int_t column, Int_t row, Float_t value);
43 void SetTimeChannelDecal(Int_t module, Int_t column, Int_t row, Float_t value);
44 void SetTimeChannel (Int_t module, Int_t column, Int_t row, Int_t bc, Float_t value);
63c22917 45
aaa41982 46 void SetADCchannelRef (Float_t value) { fADCchannelRef = value ; }
f565d89d 47
48 protected:
aaa41982 49
50 Float_t fADCchannelRef ; // base value of the ADC channel set from cosmics calibration
51
df5cea6b 52 Float_t fADCchannel [AliEMCALGeoParams::fgkEMCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows] ; // width of one ADC channel in GeV ([mod][col][row])
53 Float_t fADCchannelDecal [AliEMCALGeoParams::fgkEMCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows] ; // decalibrate width of one ADC channel in GeV ([mod][col][row])
aaa41982 54 Float_t fADCpedestal [AliEMCALGeoParams::fgkEMCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows] ; // value of the ADC pedestal ([mod][col][row]), not used
55 Float_t fTimeChannelDecal[AliEMCALGeoParams::fgkEMCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows] ; // time shift of one ADC channel ([mod][col][row])
56 Float_t fTimeChannel [AliEMCALGeoParams::fgkEMCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows][4] ; // time shift of one ADC channel ([mod][col][row][bunch crossing number])
63c22917 57
aaa41982 58 ClassDef(AliEMCALCalibData,4) // EMCAL Calibration data
f565d89d 59};
60
61#endif