]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
A small fix to the RunLoader that solves the following problem: In case of a corrupt...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Sep 2006 15:24:43 +0000 (15:24 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 6 Sep 2006 15:24:43 +0000 (15:24 +0000)
STEER/AliRunLoader.cxx

index b9d1528554b26114ea0311bc0316930f4c463ff8..f84c0e6157039c4c5c1bf29c5cb38cfdaf5ef383 100644 (file)
@@ -301,8 +301,15 @@ Int_t AliRunLoader::GetEvent(Int_t evno)
      return 2;
    }
 
-  if (fStack && fKineDataLoader->GetBaseLoader(0)->IsLoaded()) fStack->GetEvent();
-  
+  if (fStack && fKineDataLoader->GetBaseLoader(0)->IsLoaded())
+    {
+      if (fStack->GetEvent() == kFALSE)
+       {
+         AliError(Form("Error occured while GetEvent for Stack. Event %d",evno));
+         return 2;
+       }
+    }
+
   //Trigger data reloading in all loaders 
   TIter next(fLoaders);
   AliLoader *loader;