]>
Commit | Line | Data |
---|---|---|
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 | //////////////////////////////////////////////// | |
10 | // | |
11 | // class for EMCAL calibration // | |
12 | // | |
13 | //////////////////////////////////////////////// | |
14 | ||
15 | #include "TNamed.h" | |
16 | #include "AliEMCALGeoParams.h" | |
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(); | |
27 | virtual void Print(Option_t *option = "") const; | |
28 | ||
29 | // All indexes start from 0! | |
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 | ||
36 | // | |
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 | ||
43 | // Fill for (relative) recalibration (undo 1, apply 2) | |
44 | void Fill(const AliEMCALCalibData *cd1, const AliEMCALCalibData *cd2, Bool_t print=0); | |
45 | ||
46 | protected: | |
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 | ||
53 | // | |
54 | ClassDef(AliEMCALCalibData,2) // EMCAL Calibration data | |
55 | }; | |
56 | ||
57 | #endif |