fabs replacment
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Apr 2010 06:24:56 +0000 (06:24 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Apr 2010 06:24:56 +0000 (06:24 +0000)
*Marian)

TPC/AliTPCGGVoltError.cxx

index e80d71f..3444485 100644 (file)
@@ -178,7 +178,7 @@ void AliTPCGGVoltError::InitGGVoltErrorDistortion() {
        Double_t zterm = TMath::Cos( k*(fgkTPC_Z0-TMath::Abs(z)) ) - 1 ;
        intz += zterm * numerator / denominator ;
        // Assume series converges, break if small terms
-       if ( n>10 && fabs(intz)*1.e-10 > fabs(numerator/denominator) ) break;   
+       if ( n>10 && TMath::Abs(intz)*1.e-10 > TMath::Abs(numerator/denominator) ) break;   
       }
       fGGVoltErrorER[i][j] = (Double_t) intz ;