Protecting if the events are not there
authoralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 31 Jul 2003 07:46:28 +0000 (07:46 +0000)
committeralibrary <alibrary@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 31 Jul 2003 07:46:28 +0000 (07:46 +0000)
TPC/AliTPCHits2Digits.C

index 4ac823f..a68fa77 100644 (file)
@@ -54,7 +54,7 @@ Int_t AliTPCHits2Digits(Int_t nev=5) {
 
   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);
   }