From 549102ce5da499f2db292058b4c28e12dc15ed43 Mon Sep 17 00:00:00 2001 From: belikov Date: Mon, 22 Feb 2010 09:21:06 +0000 Subject: [PATCH] Fix in the usage of the magnetc field (A. Marin) --- STEER/AliHelix.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/STEER/AliHelix.cxx b/STEER/AliHelix.cxx index ce4e5aa9c27..a1f6330d8a8 100644 --- a/STEER/AliHelix.cxx +++ b/STEER/AliHelix.cxx @@ -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); -- 2.39.3