Patch for the tracker
[u/mrichter/AliRoot.git] / TPC / AliTPCROC.cxx
index e72058e..f99d9e5 100644 (file)
@@ -404,10 +404,10 @@ void AliTPCROC::GetPositionLocal(UInt_t sector, UInt_t row, UInt_t pad, Float_t
   pos[2]=fZLength;
   if (sector<36){
    pos[0] = fPadRowLow[row];
-   pos[1] = fInnerPadPitchWidth*(Int_t(pad)-Int_t(fNPads[0][row])/2);
+   pos[1] = fInnerPadPitchWidth*(Int_t(pad)+0.5-Int_t(fNPads[0][row])/2);
   }else{
     pos[0] = fPadRowUp[row];
-    pos[1] = fOuterPadPitchWidth*(Int_t(pad)-Int_t(fNPads[1][row])/2);    
+    pos[1] = fOuterPadPitchWidth*(Int_t(pad)+0.5-Int_t(fNPads[1][row])/2);    
   }
   if ((sector%36)>=18){
     pos[2] *= -1.;