Raw data size should be in bytes instead of words.
authorcussonno <cussonno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 29 Oct 2004 05:13:31 +0000 (05:13 +0000)
committercussonno <cussonno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 29 Oct 2004 05:13:31 +0000 (05:13 +0000)
MUON/AliMUONRawData.cxx

index fd701819242655a0b7899942e74e6f595e8c9b66..e846c14b43e57930cd58a4a85c7d950752b9b4b3 100644 (file)
@@ -380,13 +380,13 @@ Int_t AliMUONRawData::WriteTrackerDDL(Int_t iCh)
     }
     if (iDDL == 0) {
       // write DDL 1
     }
     if (iDDL == 0) {
       // write DDL 1
-      header.fSize = index + headerSize;// total length in word
+      header.fSize = (index + headerSize) * 4;// total length in bytes
       fwrite((char*)(&header),headerSize*4,1,fFile1);
       fwrite(buffer,sizeof(int),index,fFile1);
     } 
     if (iDDL == 1) {
       // write DDL 2
       fwrite((char*)(&header),headerSize*4,1,fFile1);
       fwrite(buffer,sizeof(int),index,fFile1);
     } 
     if (iDDL == 1) {
       // write DDL 2
-      header.fSize = index + headerSize;// total length in word
+      header.fSize = (index + headerSize) * 4;// total length in bytes
       fwrite((char*)(&header),headerSize*4,1,fFile2);
       fwrite(buffer,sizeof(int),index,fFile2);
     }
       fwrite((char*)(&header),headerSize*4,1,fFile2);
       fwrite(buffer,sizeof(int),index,fFile2);
     }
@@ -556,13 +556,13 @@ Int_t AliMUONRawData::WriteTriggerDDL()
     
     if (iDDL == 0) {
       // write DDL 1
     
     if (iDDL == 0) {
       // write DDL 1
-      header.fSize = index + headerSize;// total length in word
+      header.fSize = (index + headerSize) * 4;// total length in bytes
       fwrite((char*)(&header),headerSize*4,1,fFile1);
       fwrite(buffer,sizeof(int),index,fFile1);
     } 
     if (iDDL == 1) {
       // write DDL 2
       fwrite((char*)(&header),headerSize*4,1,fFile1);
       fwrite(buffer,sizeof(int),index,fFile1);
     } 
     if (iDDL == 1) {
       // write DDL 2
-      header.fSize = index + headerSize;// total length in word
+      header.fSize = (index + headerSize) * 4;// total length in bytes
       fwrite((char*)(&header),headerSize*4,1,fFile2);
       fwrite(buffer,sizeof(int),index,fFile2);
     }
       fwrite((char*)(&header),headerSize*4,1,fFile2);
       fwrite(buffer,sizeof(int),index,fFile2);
     }