Int_t AliTPCHits2Digits(Int_t nev=5) {
// Connect the Root Galice file containing Geometry, Kine and Hits
if (gAlice) {
- delete gAlice->GetRunLoader();
+ delete AliRunLoader::Instance();
delete gAlice;//if everything was OK here it is already NULL
gAlice = 0x0;
}
for (Int_t i=0; i<nev; i++){
printf("Processing event %d \n",i);
- rl->GetEvent(i);
+ if(rl->GetEvent(i)) break;
TPC->SetActiveSectors(); // all sectors set active
TPC->Hits2Digits(i);
}