Nasty bug. The directory is not initialized if the event index is -1. In fact it...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Aug 2008 16:12:05 +0000 (16:12 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 15 Aug 2008 16:12:05 +0000 (16:12 +0000)
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;