]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix in the usage of the magnetc field (A. Marin)
authorbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Feb 2010 09:21:06 +0000 (09:21 +0000)
committerbelikov <belikov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Feb 2010 09:21:06 +0000 (09:21 +0000)
STEER/AliHelix.cxx

index ce4e5aa9c27ba28be7e9631593ee5b4326e20079..a1f6330d8a8d30d120b5a0133b2413158d67d2f3 100644 (file)
@@ -175,7 +175,9 @@ void  AliHelix::GetMomentum(Double_t phase, Double_t p[4],Double_t conversion, D
   // return  momentum at given phase
   Double_t x[3],g[3],gg[3];
   Evaluate(phase,x,g,gg);
-  if (TMath::Abs(conversion)<0.0001) conversion = -1000/0.299792458/AliTracker::GetBz();
+  //  if (TMath::Abs(conversion)<0.0001) conversion = -1000/0.299792458/AliTracker::GetBz();
+  if (TMath::Abs(conversion)<0.0001) conversion = TMath::Abs(1./kB2C/AliTracker::GetBz());
+
   Double_t mt = TMath::Sqrt(g[0]*g[0]+g[1]*g[1]);
   p[0] = fHelix[8]*g[0]/(mt*conversion);
   p[1] = fHelix[8]*g[1]/(mt*conversion);