From: marian Date: Mon, 1 Dec 2008 16:43:12 +0000 (+0000) Subject: Bug fix - Use the proper z vertex X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=cedc28015566708e53b5df672184d72de4c8eefe;p=u%2Fmrichter%2FAliRoot.git Bug fix - Use the proper z vertex for TOF correction - dist+=(fPrimVtx[0]-x[2])*(fPrimVtx[0]-x[2]); + dist+=(fPrimVtx[2]-x[2])*(fPrimVtx[2]-x[2]); --- diff --git a/TPC/AliTPCTransform.cxx b/TPC/AliTPCTransform.cxx index b3de8533a3e..885a4b42128 100755 --- a/TPC/AliTPCTransform.cxx +++ b/TPC/AliTPCTransform.cxx @@ -162,7 +162,7 @@ void AliTPCTransform::Transform(Double_t *x,Int_t *i,UInt_t /*time*/, Float_t dist=0; dist+=(fPrimVtx[0]-x[0])*(fPrimVtx[0]-x[0]); dist+=(fPrimVtx[1]-x[1])*(fPrimVtx[1]-x[1]); - dist+=(fPrimVtx[0]-x[2])*(fPrimVtx[0]-x[2]); + dist+=(fPrimVtx[2]-x[2])*(fPrimVtx[2]-x[2]); dist = TMath::Sqrt(dist); // drift length correction because of TOF // the drift velocity is in cm/s therefore multiplication by 0.01