]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Eff C++ warning removal (Marian)
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 25 Oct 2008 11:26:51 +0000 (11:26 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 25 Oct 2008 11:26:51 +0000 (11:26 +0000)
TPC/AliTPCCalibKr.cxx

index 34786fced13d7e192cbcc5ba9d124cd64577e0ee..650b33026cea9c4f03960c6e012fe0bc6724bafd 100644 (file)
@@ -450,9 +450,9 @@ void AliTPCCalibKr::Analyse()
         // rowStep (padStep) even: fill s/2 rows (pads) in ascending direction, s/2-1 in descending direction
         for (Int_t r = iRow - (rowStep/2 - (rowStep+1)%2); r <= (Int_t)(iRow + rowStep/2); r++) {
           if (r < 0 || r >= (Int_t)nRows) continue;
-          UInt_t nPads = roc.GetNPads(r);
+          UInt_t nPadsR = roc.GetNPads(r);
           for (Int_t p = iPad - (padStep/2 - (padStep+1)%2); p <= (Int_t)(iPad + padStep/2); p++) {
-            if (p < 0 || p >= (Int_t)nPads) continue;
+            if (p < 0 || p >= (Int_t)nPadsR) continue;
             spectrMeanCalPad->GetCalROC(chamber)->SetValue(r, p, histMean);
             spectrRMSCalPad->GetCalROC(chamber)->SetValue(r, p, histRMS);
             fitMeanCalPad->GetCalROC(chamber)->SetValue(r, p, fitMean);