Nasty bug. The directory is not initialized if the event index is -1. In fact it...
[u/mrichter/AliRoot.git] / RAW / AliRawReaderFile.cxx
index 560c4f9..e126d10 100644 (file)
@@ -88,7 +88,7 @@ AliRawReaderFile::AliRawReaderFile(const char* dirName, Int_t eventNumber) :
 
   fDirectory = OpenDirectory();
   if (!fDirectory) fIsValid = kFALSE;
-  if (!OpenNextFile()) fIsValid = kFALSE;
+  if (fEventIndex >= 0 && (!OpenNextFile())) fIsValid = kFALSE;
   fHeader = new AliRawDataHeader;
 
   fId[0] = fId[1] = 0;