]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 669e708afa68ac2197d4e6f03c764ca2e5a78ba7..8cc40cd39ff0050b64ce922e8a69aac119b23e77 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 c96cb1d33740f4a2d9c9062e3acb2db42a0097b1..07dbff1315c2f93bc20729e2a9036f1516a96392 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;