]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliAltroRawStreamOld.cxx
- treating the closing of the popup window properly
[u/mrichter/AliRoot.git] / RAW / AliAltroRawStreamOld.cxx
index 47a416c87562583495488a985326e323dcd5a7e7..13d264bd3b306684ccf9b6e07f08e5458f960c74 100644 (file)
@@ -50,11 +50,6 @@ AliAltroRawStreamOld::AliAltroRawStreamOld(AliRawReader* rawReader) :
 {
 // create an object to read Altro raw digits
   fSegmentation[0] = fSegmentation[1] = fSegmentation[2] = -1;
-
-  // Invalid Common Data Header is used
-  // --> therefore skip the header and read
-  // only the payload
-  rawReader->RequireHeader(kFALSE);
 }
 
 //_____________________________________________________________________________
@@ -283,15 +278,11 @@ Int_t AliAltroRawStreamOld::GetPosition()
   position *= 5;
 
   // Check the consistency of the header and trailer
-  if ((fRawReader->GetDataSize() - 32) != position)
-    AliFatal(Form("Inconsistent raw data size ! Expected %d bytes (from the header), found %d words (in the RCU trailer)!",
-                 fRawReader->GetDataSize()-32,
+  if ((fRawReader->GetDataSize() - 4) != position)
+    AliFatal(Form("Inconsistent raw data size ! Expected %d bytes (from the header), found %d bytes (in the RCU trailer)!",
+                 fRawReader->GetDataSize()-4,
                  position));
 
-  // Skip the Common Data Header which contains
-  // only 7 (!) words
-  fData += 28;
-
   // Return the position in units of 10-bit words
   return position*8/10;
 }