Fixed a bug in AliITSVertex objects names assignement
[u/mrichter/AliRoot.git] / ITS / AliITSVertexerTracks.cxx
index fb8d7db81bb6b7bc54b21c4e4079991c9ce94354..a699211ce5fc8bb28da89f76187e9036ce4dd10a 100644 (file)
@@ -123,7 +123,10 @@ void AliITSVertexerTracks::FindVertices() {
     }
 
     if(fDebug) fCurrentVertex->PrintStatus();
-
+    TString vtxName = "Vertex_";
+    vtxName += ev;
+    fCurrentVertex->SetName(vtxName.Data()); 
+    fCurrentVertex->SetTitle("VertexerTracks");
     WriteCurrentVertex();
   } // loop over events
 
@@ -228,7 +231,7 @@ AliITSVertex* AliITSVertexerTracks::FindVertexForCurrentEvent(Int_t evnumb) {
   if(fDebug) printf(" vertex fit completed\n");
 
   TString vtxName;
-  vtxName = "VertexTracks_";
+  vtxName = "Vertex_";
   vtxName += evnumb;
   fCurrentVertex->SetName(vtxName.Data());
   return fCurrentVertex;