reset in NextEvent added
authortkuhr <tkuhr@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Oct 2004 09:08:56 +0000 (09:08 +0000)
committertkuhr <tkuhr@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Oct 2004 09:08:56 +0000 (09:08 +0000)
RAW/AliRawReaderDate.cxx

index e855527f2d10fe029c85ad1df3eee4a6951b3cdb..53f4f33ff327f3e5b4326ba22a0da3c9cc7a0dea 100644 (file)
@@ -460,6 +460,7 @@ Bool_t AliRawReaderDate::Reset()
 
 #ifdef ALI_DATE
   fSubEvent = NULL;
 
 #ifdef ALI_DATE
   fSubEvent = NULL;
+  fEquipment = NULL;
 #endif
   fCount = 0;
   fPosition = fEnd = NULL;
 #endif
   fCount = 0;
   fPosition = fEnd = NULL;
@@ -474,6 +475,7 @@ Bool_t AliRawReaderDate::NextEvent()
 #ifdef ALI_DATE
   if (!fFile) return kFALSE;
 
 #ifdef ALI_DATE
   if (!fFile) return kFALSE;
 
+  Reset();
   eventHeaderStruct header;
   UInt_t headerSize = sizeof(eventHeaderStruct);
   if (fEvent) delete[] fEvent;
   eventHeaderStruct header;
   UInt_t headerSize = sizeof(eventHeaderStruct);
   if (fEvent) delete[] fEvent;