]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/src/AliL3ConfMapTrack.cxx
Added the magnetic field as a static member of the AliL3Transform class,
[u/mrichter/AliRoot.git] / HLT / src / AliL3ConfMapTrack.cxx
index fc6447fd055468cfae85f798b460130f662b94c7..a09083477984017cd0116ad835d7f56a0bafc83e 100644 (file)
@@ -10,6 +10,7 @@
 #include "AliL3ConfMapPoint.h"
 #include "AliL3ConfMapFit.h"
 #include "AliL3ConfMapTrack.h"
+#include "AliL3Transform.h"
 #include <math.h>
 
 //_____________________________________________________________
@@ -165,8 +166,8 @@ void AliL3ConfMapTrack::Fill(AliL3Vertex *vertex,Double_t max_Dca)
   Double_t radius = sqrt(a2Xy*a2Xy+1)/(2*fabs(a1Xy));
   SetRadius(radius);
 
-  //fPt = (Double_t)(BFACT * BField * fRadius);
-  Double_t pt = (Double_t)(BFACT * BField * GetRadius());
+  //fPt = (Double_t)(BFACT * AliL3Transform::GetBField() * fRadius);
+  Double_t pt = (Double_t)(BFACT * AliL3Transform::GetBField() * GetRadius());
   SetPt(pt);
 
   if(GetPt() > max_Dca) //go for fit of helix in real space
@@ -204,7 +205,7 @@ void AliL3ConfMapTrack::UpdateToFirstPoint()
   Double_t tPhi0 = GetPsi() + GetCharge() * 0.5 * pi / fabs(GetCharge()) ;
   Double_t x0    = GetR0() * cos(GetPhi0()) ;
   Double_t y0    = GetR0() * sin(GetPhi0()) ;
-  Double_t rc    = fabs(GetPt()) / ( BFACT * BField )  ;
+  Double_t rc    = fabs(GetPt()) / ( BFACT * AliL3Transform::GetBField() )  ;
   Double_t xc    = x0 - rc * cos(tPhi0) ;
   Double_t yc    = y0 - rc * sin(tPhi0) ;