]>
Commit | Line | Data |
---|---|---|
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 | |
18 | class AliEMCALCalibData: public TNamed { | |
19 | ||
20 | public: | |
21 | AliEMCALCalibData(); | |
22 | AliEMCALCalibData(const char* name); | |
23 | AliEMCALCalibData(const AliEMCALCalibData &calibda); | |
24 | AliEMCALCalibData& operator= (const AliEMCALCalibData &calibda); | |
25 | virtual ~AliEMCALCalibData(); | |
26 | void Reset(); | |
df5cea6b | 27 | virtual void Print(Option_t *option = "") const; |
28 | ||
63b315c5 | 29 | // All indexes start from 0! |
df5cea6b | 30 | Float_t GetADCchannel (Int_t module, Int_t column, Int_t row) const; |
31 | Float_t GetADCchannelDecal (Int_t module, Int_t column, Int_t row) const; | |
32 | Float_t GetADCpedestal (Int_t module, Int_t column, Int_t row) const; | |
33 | Float_t GetTimeChannel (Int_t module, Int_t column, Int_t row) const; | |
34 | Float_t GetTimeChannelDecal(Int_t module, Int_t column, Int_t row) const; | |
35 | ||
f565d89d | 36 | // |
df5cea6b | 37 | void SetADCchannel (Int_t module, Int_t column, Int_t row, Float_t value); |
38 | void SetADCchannelDecal (Int_t module, Int_t column, Int_t row, Float_t value); | |
39 | void SetADCpedestal (Int_t module, Int_t column, Int_t row, Float_t value); | |
40 | void SetTimeChannel (Int_t module, Int_t column, Int_t row, Float_t value); | |
41 | void SetTimeChannelDecal(Int_t module, Int_t column, Int_t row, Float_t value); | |
42 | ||
0e76a7bf | 43 | // Fill for (relative) recalibration (undo 1, apply 2) |
44 | void Fill(const AliEMCALCalibData *cd1, const AliEMCALCalibData *cd2, Bool_t print=0); | |
f565d89d | 45 | |
46 | protected: | |
df5cea6b | 47 | Float_t fADCchannel [AliEMCALGeoParams::fgkEMCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows] ; // width of one ADC channel in GeV ([mod][col][row]) |
48 | Float_t fADCchannelDecal [AliEMCALGeoParams::fgkEMCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows] ; // decalibrate width of one ADC channel in GeV ([mod][col][row]) | |
49 | Float_t fADCpedestal [AliEMCALGeoParams::fgkEMCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows] ; // value of the ADC pedestal ([mod][col][row]) | |
50 | Float_t fTimeChannel [AliEMCALGeoParams::fgkEMCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows] ; // time width of one ADC channel ([mod][col][row]) | |
51 | Float_t fTimeChannelDecal[AliEMCALGeoParams::fgkEMCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows] ; // time width of one ADC channel ([mod][col][row]) | |
52 | ||
f565d89d | 53 | // |
df5cea6b | 54 | ClassDef(AliEMCALCalibData,2) // EMCAL Calibration data |
f565d89d | 55 | }; |
56 | ||
57 | #endif |