]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fix - Use the proper z vertex
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Dec 2008 16:43:12 +0000 (16:43 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Dec 2008 16:43:12 +0000 (16:43 +0000)
for TOF correction
-  dist+=(fPrimVtx[0]-x[2])*(fPrimVtx[0]-x[2]);
+  dist+=(fPrimVtx[2]-x[2])*(fPrimVtx[2]-x[2]);

TPC/AliTPCTransform.cxx

index b3de8533a3e059924b4f8561672a8ae188867191..885a4b42128234c18e6202fde24fd940bc6dddc9 100755 (executable)
@@ -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