]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCROC.cxx
Fixes for report #63583: High CPU time spent in TMath::Erf
[u/mrichter/AliRoot.git] / TPC / AliTPCROC.cxx
index e8da2a75eac8b4cf26cdf8a01cb9148419fb0688..f99d9e57b9dcc7e2b9651094ce37d8865475f029 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[0][row])/2);    
+    pos[1] = fOuterPadPitchWidth*(Int_t(pad)+0.5-Int_t(fNPads[1][row])/2);    
   }
   if ((sector%36)>=18){
     pos[2] *= -1.;