]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/hough/AliL3HoughTrack.cxx
Little changes to make g++ version 3.2 compile the hough library.
[u/mrichter/AliRoot.git] / HLT / hough / AliL3HoughTrack.cxx
index 2978901102522706a4cbc2835dae11234154ae6d..3a45669d4f6d307ba8390b58e66a1582a5bdf3b3 100644 (file)
@@ -3,12 +3,16 @@
 // Author: Anders Vestbo <mailto:vestbo@fi.uib.no>
 //*-- Copyright &copy ASV 
 
-#include <math.h>
+#include "AliL3StandardIncludes.h"
 
 #include "AliL3Logging.h"
 #include "AliL3HoughTrack.h"
 #include "AliL3Transform.h"
 
+#if GCCVERSION == 3
+using namespace std;
+#endif
+
 //_____________________________________________________________
 // AliL3HoughTrack
 //
@@ -114,7 +118,7 @@ void AliL3HoughTrack::UpdateToFirstRow()
     Double_t y0    = GetR0() * sin(GetPhi0()) ;
   */
   Double_t rc    = GetRadius();//fabs(GetPt()) / ( BFACT * AliL3Transform::GetBField() )  ;
-  Double_t tPhi0 = GetPsi() + GetCharge() * 0.5 * pi / fabs(GetCharge()) ;
+  Double_t tPhi0 = GetPsi() + GetCharge() * 0.5 * pi / abs(GetCharge()) ;
   Double_t xc    = GetCenterX();//x0 - rc * cos(tPhi0) ;
   Double_t yc    = GetCenterY();//y0 - rc * sin(tPhi0) ;
   
@@ -148,7 +152,7 @@ void AliL3HoughTrack::UpdateToFirstRow()
   
   //if ( tPhi < 0 ) tPhi += 2. * M_PI ;
   
-  Double_t tPsi = tPhi - GetCharge() * 0.5 * pi / fabs(GetCharge()) ;
+  Double_t tPsi = tPhi - GetCharge() * 0.5 * pi / abs(GetCharge()) ;
   if ( tPsi > 2. * pi ) tPsi -= 2. * pi ;
   if ( tPsi < 0.        ) tPsi += 2. * pi ;