]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fixed #55858: using the Bx, By and Bz in track matching with TOF
authordecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Oct 2009 15:50:22 +0000 (15:50 +0000)
committerdecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Oct 2009 15:50:22 +0000 (15:50 +0000)
TOF/AliTOFtrack.cxx

index 1c8d4526b7ef7b32c1902580ef372fc6fb47641d..ac26bd4b5968a384bbf87921674e72d0efb8b060 100644 (file)
@@ -96,8 +96,11 @@ Bool_t AliTOFtrack::PropagateTo(Double_t xk,Double_t x0,Double_t rho)
   
   Double_t oldX=GetX(), oldY=GetY(), oldZ=GetZ();
 
-  Double_t bz=GetBz();
-  if (!AliExternalTrackParam::PropagateTo(xk,bz)) return kFALSE;
+  Double_t b[3];GetBxByBz(b);
+  if (!AliExternalTrackParam::PropagateToBxByBz(xk,b)) return kFALSE;
+  // OLD used code
+  //Double_t bz=GetBz();
+  //if (!AliExternalTrackParam::PropagateTo(xk,bz)) return kFALSE;
 
   Double_t d = TMath::Sqrt((GetX()-oldX)*(GetX()-oldX) + 
                            (GetY()-oldY)*(GetY()-oldY) +