AliRoot Core  3dc7879 (3dc7879)
AliEMCALCalibData.h
Go to the documentation of this file.
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 //_________________________________________________________________________
21 
22 #include "TNamed.h"
23 #include "AliEMCALGeoParams.h"
24 
25 class AliEMCALCalibData: public TNamed {
26 
27  public:
28 
30  AliEMCALCalibData(const char* name);
31  AliEMCALCalibData(const AliEMCALCalibData &calibda);
33  virtual ~AliEMCALCalibData() { ; }
34 
35  void Reset();
36  void Print(Option_t *option = "") const;
37 
38  // All indexes start from 0!
39  Float_t GetADCchannel (Int_t module, Int_t column, Int_t row) const;
40  Float_t GetADCchannelOnline(Int_t module, Int_t column, Int_t row) const;
41  Float_t GetADCchannelDecal (Int_t module, Int_t column, Int_t row) const;
42  Float_t GetADCpedestal (Int_t module, Int_t column, Int_t row) const;
43 
44  Float_t GetADCchannelRef () const { return fADCchannelRef ; }
45 
46  void SetADCchannel (Int_t module, Int_t column, Int_t row, Float_t value);
47  void SetADCchannelOnline(Int_t module, Int_t column, Int_t row, Float_t value);
48  void SetADCchannelDecal (Int_t module, Int_t column, Int_t row, Float_t value);
49  void SetADCpedestal (Int_t module, Int_t column, Int_t row, Float_t value);
50 
51  void SetADCchannelRef (Float_t value) { fADCchannelRef = value ; }
52 
53  // Do not use, please use AliEMCALTimeCalib, keep for backward compatibility reasons
54  Float_t GetTimeChannelDecal(Int_t module, Int_t column, Int_t row) const;
55  Float_t GetTimeChannel (Int_t module, Int_t column, Int_t row, Int_t bc) const;
56 
57  void SetTimeChannelDecal(Int_t module, Int_t column, Int_t row, Float_t value);
58  void SetTimeChannel (Int_t module, Int_t column, Int_t row, Int_t bc, Float_t value);
59 
60 
61  static const int fgkECALModules = 12; // number of modules in EMCAL
62  static const int fgkDCALModules = 10; // number of modules in DCAL 8+2 in possible future
63 
64  protected:
65 
66  Float_t fADCchannelRef ;
67 
72 
73  // Do not use, please use AliEMCALTimeCalib, keep for backward compatibility reasons
76 
77  // Add specific arrays for DCal to avoid backward incompatibilities,
78  // dimension of DCal SM is smaller than EMCAL but assume the same to avoid complications due to partial SM
83 
84  // Do not use, please use AliEMCALTimeCalib, keep for backward compatibility reasons
87 
89  ClassDef(AliEMCALCalibData,6);
91 
92 };
93 
94 #endif // ALIEMCALCALIBDATA_H
95 
96 
void SetADCchannel(Int_t module, Int_t column, Int_t row, Float_t value)
void SetTimeChannel(Int_t module, Int_t column, Int_t row, Int_t bc, Float_t value)
static const int fgkEMCALRows
Number of rows per module for EMCAL.
Float_t GetTimeChannelDecal(Int_t module, Int_t column, Int_t row) const
Float_t fADCchannelDecal[fgkECALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]
width of one ADC channel in GeV obtained from the voltage settings online
Float_t fADCchannelOnlineDCAL[fgkDCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]
width of one ADC channel in GeV ([mod][col][row])
virtual ~AliEMCALCalibData()
AliEMCALCalibData()
Default constructor.
Cell energy calibration factors container class.
void Print(Option_t *option="") const
Float_t fADCchannel[fgkECALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]
base value of the ADC channel set from cosmics calibration, not to be used, instead use fADCchannelOn...
Float_t GetADCchannelRef() const
void SetADCchannelRef(Float_t value)
Float_t fTimeChannel[fgkECALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows][4]
time shift of one ADC channel ([mod][col][row])
Float_t fTimeChannelDecal[fgkECALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]
value of the ADC pedestal ([mod][col][row]), not used
void SetADCpedestal(Int_t module, Int_t column, Int_t row, Float_t value)
void SetADCchannelDecal(Int_t module, Int_t column, Int_t row, Float_t value)
Float_t GetADCchannelOnline(Int_t module, Int_t column, Int_t row) const
Float_t fTimeChannelDecalDCAL[fgkDCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]
value of the ADC pedestal ([mod][col][row]), not used
AliEMCALCalibData & operator=(const AliEMCALCalibData &calibda)
Assignment operator.
Float_t fADCpedestal[fgkECALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]
decalibrate width of one ADC channel in GeV ([mod][col][row])
void Reset()
Set all pedestals to 0 and all ADC channels widths to 1.
Float_t GetADCchannelDecal(Int_t module, Int_t column, Int_t row) const
Float_t fADCchannelDecalDCAL[fgkDCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]
width of one ADC channel in GeV obtained from the voltage settings online
Float_t GetTimeChannel(Int_t module, Int_t column, Int_t row, Int_t bc) const
Float_t fADCchannelOnline[fgkECALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]
width of one ADC channel in GeV ([mod][col][row])
static const int fgkEMCALCols
Number of columns per module for EMCAL.
Float_t GetADCchannel(Int_t module, Int_t column, Int_t row) const
Float_t fADCpedestalDCAL[fgkDCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]
decalibrate width of one ADC channel in GeV ([mod][col][row])
static const int fgkDCALModules
void SetTimeChannelDecal(Int_t module, Int_t column, Int_t row, Float_t value)
Float_t GetADCpedestal(Int_t module, Int_t column, Int_t row) const
Float_t fADCchannelDCAL[fgkDCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows]
time shift of one ADC channel ([mod][col][row][bunch crossing number])
static const int fgkECALModules
void SetADCchannelOnline(Int_t module, Int_t column, Int_t row, Float_t value)
Float_t fTimeChannelDCAL[fgkDCALModules][AliEMCALGeoParams::fgkEMCALCols][AliEMCALGeoParams::fgkEMCALRows][4]
time shift of one ADC channel ([mod][col][row])