]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Taking into account the new AliESDVertex interface (Yu.Belikov)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Feb 2004 13:47:56 +0000 (13:47 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 Feb 2004 13:47:56 +0000 (13:47 +0000)
STEER/AliESDtest.C

index 0507ff771d93f215487a7c75d7497e81399ab3c4..3d33baa6e7f2fdf284bdd206909275aee80ae6d2 100644 (file)
@@ -241,13 +241,9 @@ Int_t AliESDtest(Int_t nev=1,Int_t run=0) {
      TArrayF v(3);     
      rl->GetHeader()->GenEventHeader()->PrimaryVertex(v);
      Double_t vtx[3]={v[0],v[1],v[2]};
-     Double_t cvtx[6]={
-       0.005,
-       0.000, 0.005,
-       0.000, 0.000, 0.010
-     };
-     event->SetVertex(vtx,cvtx);
-     cvtx[1]=cvtx[0]; cvtx[2]=cvtx[5]; //trackers use only the diag.elements
+     Double_t cvtx[3]={0.005,0.005,0.010};
+     AliESDVertex vertex(vtx,cvtx);
+     event->SetVertex(&vertex);
 
 //***** Initial path towards the primary vertex
      tpcTracker.SetVertex(vtx,cvtx);