]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ITS/AliITSDumpVertices.C
9e757ac95badfa6a5b2fbc71cc64350ab5524ae2
[u/mrichter/AliRoot.git] / ITS / AliITSDumpVertices.C
1 void AliITSDumpVertices(Int_t firstEv=0, Int_t noev=1,
2        TString fileimp="AliITSVertices.root",
3        TString objbasename="VertexTracks_"){
4   // This is a simple example on how to access the vertex objects
5   // The default object base name is VertexTracks_  for AliITSVertexerTracks
6   //                                 Vertex_        for AliITSVertexerPPZ
7   //                                 Vertex_        for AliITSVertexerIons
8   Int_t evmax = firstEv+noev;
9   TFile *file = new TFile(fileimp);
10   for(Int_t i=firstEv; i<evmax; i++){
11     TString name = objbasename;
12     name += i;
13     vert = (AliITSVertex*)file->Get(name.Data());
14     if(vert){
15       cout <<"===============================================\n";
16       cout <<" Event n. "<<i<<endl;
17       vert->PrintStatus();
18     }
19   }
20 }