26 TNamed(), fADCchannelRef(0)
46 SetName (calibda.GetName());
47 SetTitle(calibda.GetName());
54 for(Int_t supermodule = 0; supermodule < nSMod; supermodule++)
58 for(Int_t column = 0; column<nCol; column++)
60 for(Int_t row = 0; row<nRow; row++)
67 for(Int_t bc = 0; bc < 4; bc++)
79 SetName (calibda.GetName());
80 SetTitle(calibda.GetName());
89 for(Int_t supermodule = 0; supermodule < nSMod; supermodule++)
93 for(Int_t column = 0; column<nCol; column++)
95 for(Int_t row = 0; row<nRow; row++)
102 for(Int_t bc = 0; bc < 4; bc++)
122 for (Int_t supermodule=0; supermodule<nSMod; supermodule++)
126 for (Int_t column=0; column < nCol; column++)
128 for (Int_t row = 0; row < nRow; row++)
135 for(Int_t bc = 0; bc < 4; bc++)
153 for (Int_t supermodule = 0; supermodule < nSMod; supermodule++)
157 printf(
"============== Supermodule %d\n",supermodule+1);
158 for (Int_t column = 0; column < nCol; column++)
160 for (Int_t row = 0; row < nRow; row++)
162 printf(
"[col %d,row %d] ",column, row);
163 if (strstr(option,
"gain") || strstr(option,
"all"))
166 if (strstr(option,
"online") || strstr(option,
"all"))
169 if (strstr(option,
"decal") || strstr(option,
"all"))
172 if (strstr(option,
"ped") || strstr(option,
"all"))
175 if (strstr(option,
"time") || strstr(option,
"all"))
176 printf(
"time::bc0 =%2.4f, bc1=%2.4f, bc2=%2.4f, bc3=%2.4f ",
177 GetTimeChannel(supermodule,column,row,0),
GetTimeChannel(supermodule,column,row,1),
GetTimeChannel(supermodule,column,row,2),
GetTimeChannel(supermodule,column,row,3));
179 if (strstr(option,
"timdecal") || strstr(option,
"all"))
182 if (strstr(option,
"all") || (row%4==3) )
printf(
"\n");
197 if(supermodule < 12)
return fADCchannel [supermodule] [column][row];
233 if(supermodule < 12)
return fADCpedestal [supermodule] [column][row];
243 if(supermodule < 12)
fADCchannel [supermodule] [column][row] = value;
273 if(supermodule < 12)
fADCpedestal [supermodule] [column][row] = value;
285 if(supermodule < 12)
return fTimeChannel [supermodule] [column][row][bc];
305 if(supermodule < 12)
fTimeChannel [supermodule] [column][row][bc] = value;
void SetADCchannel(Int_t module, Int_t column, Int_t row, Float_t value)
printf("Chi2/npoints = %f\n", TMath::Sqrt(chi2/npoints))
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])
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
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 fgkEMCALModules
Number of modules, 12 for EMCal + 8 for DCAL.
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])
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])