X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSDumpVertices.C;h=1d309cb8f0baa7fef6fd013bfd24d662e8ee7b66;hb=d9c4cb2b7b3b9bce9049ac039e227eba386619bd;hp=5a6303ea326ab21ab810e781c6fbe8c6006123e1;hpb=d42219649293bc9808dccd78017c671c95258a52;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSDumpVertices.C b/ITS/AliITSDumpVertices.C index 5a6303ea326..1d309cb8f0b 100644 --- a/ITS/AliITSDumpVertices.C +++ b/ITS/AliITSDumpVertices.C @@ -1,13 +1,13 @@ void AliITSDumpVertices(Int_t firstEv=0, Int_t noev=1, - TString fileimp="AliITSVertices.root", - TString objbasename="Vertex_"){ + TString fileimp="galice.root"){ // This is a simple example on how to access the vertex objects Int_t evmax = firstEv+noev; - TFile *file = new TFile(fileimp); + AliRunLoader *rl = AliRunLoader::Open(fileimp.Data()); + AliITSLoader* ITSloader = (AliITSLoader*) rl->GetLoader("ITSLoader"); + ITSloader->LoadVertices(); for(Int_t i=firstEv; iGet(name.Data()); + rl->GetEvent(i); + AliESDVertex *vert = ITSloader->GetVertex(); if(vert){ cout <<"===============================================\n"; cout <<" Event n. "<