bug fixed
authorbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 8 Oct 2010 05:55:25 +0000 (05:55 +0000)
committerbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 8 Oct 2010 05:55:25 +0000 (05:55 +0000)
PMD/AliPMDRawStream.cxx

index f7ccbb6..3c3476f 100644 (file)
@@ -114,12 +114,11 @@ Int_t AliPMDRawStream::DdlData(TObjArray *pmdddlcont)
 
  // PMD raw data does not contain CDH
 
-  fRawReader->RequireHeader(kFALSE);
+  if (!fRawReader->ReadNextData(fData))
+    {
+      return kFALSE;
+    }
 
-  if (!fRawReader->ReadNextData(fData)) {
-    fRawReader->RequireHeader(kTRUE);
-    return kFALSE;
-  }
 
   fPosition = 0;