]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSVertexerTracks.cxx
Primary vertex reconstruction and standalone ITS tracking in the reconstruction chain
[u/mrichter/AliRoot.git] / ITS / AliITSVertexerTracks.cxx
index c36af398c0dbc5fdc82bfb6314bbe986d02a3cc4..1ff61a52255b4b784e41252cf35b077e7e28fae3 100644 (file)
@@ -347,7 +347,7 @@ AliESDVertex* AliITSVertexerTracks::FindVertexForCurrentEvent(AliESD *esdEvent)
   if(nTrks < fMinTracks) { TooFewTracks(); return fCurrentVertex; }
 
   // Set initial vertex position from ESD
-  esdEvent->GetVertex(vtx,cvtx);
+  esdEvent->GetVertex()->GetXYZ(vtx);
   SetVtxStart(vtx[0],vtx[1]);
 
   // VERTEX FINDER
@@ -361,7 +361,7 @@ AliESDVertex* AliITSVertexerTracks::FindVertexForCurrentEvent(AliESD *esdEvent)
   // store vertex information in ESD
   fCurrentVertex->GetXYZ(vtx);
   fCurrentVertex->GetCovMatrix(cvtx);
-  esdEvent->SetVertex(vtx,cvtx);
+  esdEvent->SetVertex(fCurrentVertex);
 
   cout<<"Vertex: "<<vtx[0]<<", "<<vtx[1]<<", "<<vtx[2]<<endl;
   return fCurrentVertex;