use TMath::Abs instead of fabs
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 10 Dec 2007 13:41:18 +0000 (13:41 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 10 Dec 2007 13:41:18 +0000 (13:41 +0000)
HLT/TPCLib/tracking-ca/AliHLTTPCCADisplay.cxx
HLT/TPCLib/tracking-ca/AliHLTTPCCATracker.cxx

index 669e708..8cc40cd 100644 (file)
@@ -378,12 +378,12 @@ void AliHLTTPCCADisplay::DrawTrack( AliHLTTPCCATrack &track, Int_t color )
     fLine.SetLineColor( color );
     fLine.SetLineWidth(3);
     
-    if( fabs(q)>.1 ){
+    if( TMath::Abs(q)>.1 ){
       Double_t qq = pt/q;
       
       Double_t xc = t.Par()[0] + qq*t.Par()[4]/pt/bc;
       Double_t yc = t.Par()[1] - qq*t.Par()[3]/pt/bc;
-      Double_t r = fabs(qq)/fabs(bc);
+      Double_t r = TMath::Abs(qq)/fabs(bc);
        
       Double_t vx, vy;
       Sec2View( xc, yc, &vx, &vy );
index c96cb1d..07dbff1 100644 (file)
@@ -515,7 +515,7 @@ void AliHLTTPCCATracker::FitTrack( AliHLTTPCCATrack &track, Int_t nIter )
   t0[4]= c2.Y() - c1.Y();
   t0[5]= c2.Z() - c1.Z();
   Double_t tt = sqrt(t0[3]*t0[3]+t0[4]*t0[4]+t0[5]*t0[5]);
-  if( fabs(tt)>1.e-4 ){
+  if( TMath::Abs(tt)>1.e-4 ){
     t0[3]/=tt;
     t0[4]/=tt;
     t0[5]/=tt;