]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/AliITSDumpVertices.C
- fixing compilation warnings
[u/mrichter/AliRoot.git] / ITS / AliITSDumpVertices.C
CommitLineData
1621ded2 1void AliITSDumpVertices(Int_t firstEv=0, Int_t noev=1,
88cb7938 2 TString fileimp="galice.root"){
1621ded2 3 // This is a simple example on how to access the vertex objects
1621ded2 4 Int_t evmax = firstEv+noev;
88cb7938 5 AliRunLoader *rl = AliRunLoader::Open(fileimp.Data());
6 AliITSLoader* ITSloader = (AliITSLoader*) rl->GetLoader("ITSLoader");
7 ITSloader->LoadVertices();
1621ded2 8 for(Int_t i=firstEv; i<evmax; i++){
88cb7938 9 rl->GetEvent(i);
2e7b4767 10 AliESDVertex *vert = ITSloader->GetVertex();
1621ded2 11 if(vert){
12 cout <<"===============================================\n";
13 cout <<" Event n. "<<i<<endl;
14 vert->PrintStatus();
15 }
16 }
17}