From cedc28015566708e53b5df672184d72de4c8eefe Mon Sep 17 00:00:00 2001 From: marian Date: Mon, 1 Dec 2008 16:43:12 +0000 Subject: [PATCH] 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]); --- TPC/AliTPCTransform.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0