From: masera Date: Fri, 18 Apr 2003 10:43:57 +0000 (+0000) Subject: Fixed a bug in AliITSVertex objects names assignement X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=d42219649293bc9808dccd78017c671c95258a52;hp=887366e2edb11d21a33753aad43a85f4e030beed Fixed a bug in AliITSVertex objects names assignement --- diff --git a/ITS/AliITSDumpVertices.C b/ITS/AliITSDumpVertices.C index 9e757ac95ba..5a6303ea326 100644 --- a/ITS/AliITSDumpVertices.C +++ b/ITS/AliITSDumpVertices.C @@ -1,10 +1,7 @@ void AliITSDumpVertices(Int_t firstEv=0, Int_t noev=1, TString fileimp="AliITSVertices.root", - TString objbasename="VertexTracks_"){ + TString objbasename="Vertex_"){ // This is a simple example on how to access the vertex objects - // The default object base name is VertexTracks_ for AliITSVertexerTracks - // Vertex_ for AliITSVertexerPPZ - // Vertex_ for AliITSVertexerIons Int_t evmax = firstEv+noev; TFile *file = new TFile(fileimp); for(Int_t i=firstEv; iPrintStatus(); - + 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;