}
//____________________________________________________________________________
-void AliEMCALCalibTimeDepCorrection::InitCorrection(Int_t nSM, Int_t nBins, Float_t val=1.0)
+void AliEMCALCalibTimeDepCorrection::InitCorrection(Int_t nSM, Int_t nBins, Float_t val)
{
// This methods assumes that you are using SuperModules 0..nSM-1
fNSuperModule = nSM;
Int_t iCol = 0;
Int_t iRow = 0;
Int_t nCorr = nBins;
- Float_t Correction = val;
+ Float_t correction = val;
Int_t nAPDPerSM = AliEMCALGeoParams::fgkEMCALCols * AliEMCALGeoParams::fgkEMCALRows;
for (Int_t i = 0; i < fNSuperModule; i++) {
AliEMCALSuperModuleCalibTimeDepCorrection * t = (AliEMCALSuperModuleCalibTimeDepCorrection*) fSuperModuleData[i];
+ iSM = i;
t->SetSuperModuleNum(iSM); // assume SMs are coming in order
for (Int_t j=0; j<nAPDPerSM; j++) {
+ iCol = j / AliEMCALGeoParams::fgkEMCALRows;
+ iRow = j % AliEMCALGeoParams::fgkEMCALRows;
// set size of TArray
t->GetCorrection(iCol,iRow)->Set(nCorr);
for (Int_t k=0; k<nCorr; k++) {
// add to TArray
- t->GetCorrection(iCol,iRow)->AddAt(Correction, k); // AddAt = SetAt..
+ t->GetCorrection(iCol,iRow)->AddAt(correction, k); // AddAt = SetAt..
}
}
Int_t iCol = 0;
Int_t iRow = 0;
Int_t nCorr = 0;
- Float_t Correction = 0;
+ Float_t correction = 0;
Int_t nAPDPerSM = AliEMCALGeoParams::fgkEMCALCols * AliEMCALGeoParams::fgkEMCALRows;
// set size of TArray
t->GetCorrection(iCol,iRow)->Set(nCorr);
for (Int_t k=0; k<nCorr; k++) {
- inputFile >> Correction;
+ inputFile >> correction;
// add to TArray
- t->GetCorrection(iCol,iRow)->AddAt(Correction, k);
+ t->GetCorrection(iCol,iRow)->AddAt(correction, k);
}
}