]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliAltroBuffer.cxx
No need to liknk with lhapdf, pythia6 and microcern libraries
[u/mrichter/AliRoot.git] / RAW / AliAltroBuffer.cxx
index 461bfb581ef31faf40ca6599f72d2b9d72261613..12b8f3024ae01ed9987523317607741353973657 100644 (file)
@@ -265,7 +265,8 @@ void AliAltroBuffer::WriteDataHeader(Bool_t dummy, Bool_t compressed)
     WriteRCUTrailer(0);
     UInt_t currentFilePos = fFile->Tellp();
     fFile->Seekp(fDataHeaderPos);
-    header.fSize = currentFilePos-fDataHeaderPos;
+    header.fSize = 0xFFFFFFFF; // RCU can't write raw-data size so we always get an 'invalid' size field
+    //    header.fSize = currentFilePos-fDataHeaderPos;
     header.SetAttribute(0);  // valid data
     if (compressed) header.SetAttribute(1); 
     fFile->WriteBuffer((char*)(&header), sizeof(header));
@@ -305,8 +306,9 @@ void AliAltroBuffer::WriteRCUTrailer(Int_t rcuId)
   
   //  Now the RCU identifier and size of the trailer
   //  FOr the moment the triler size is 2 32-bit words
-  UInt_t buffer = 2;
-  buffer |= ((rcuId & 0x3FF) << 22);
+  UInt_t buffer = (2 & 0x7F);
+  buffer |= ((rcuId & 0x1FF) << 7);
+  buffer |= 0xAAAA << 16;
   fFile->WriteBuffer((char *)(&buffer),sizeof(UInt_t));
 
 }