]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTOUTHomerBuffer.cxx
- HOMER library manager completed
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTOUTHomerBuffer.cxx
index b93514b0423b9dc02a023b538dffc5b228e7d746..73a722a0e6e053a5957829ee6b37cc85c4a6edb6 100644 (file)
@@ -115,7 +115,7 @@ int AliHLTOUTHomerBuffer::CheckBlockAlignment(AliHLTUInt32_t index, AliHLTOUT::A
   return -ENODATA;
 }
 
-int AliHLTOUTHomerBuffer::ScanReader(AliHLTHOMERReader* pReader, AliHLTUInt32_t offset)
+int AliHLTOUTHomerBuffer::ScanReader(AliHLTMonitoringReader* pReader, AliHLTUInt32_t offset)
 {
   // see header file for class documentation
   int iResult=0;
@@ -138,14 +138,14 @@ int AliHLTOUTHomerBuffer::ScanReader(AliHLTHOMERReader* pReader, AliHLTUInt32_t
     // loop over data blocks
     HLTDebug("generating index for %d data blocks of reader with offset %#x", nofBlocks, offset);
     for (AliHLTUInt32_t i=0; i<nofBlocks && iResult>=0; i++) {
-//       homer_uint64 id=pReader->GetBlockDataType( i );
-//       homer_uint32 origin=pReader->GetBlockDataOrigin( i );
-//       homer_uint32 spec=pReader->GetBlockDataSpec( i );
-//       AliHLTComponentDataType dt;
-//       memcpy(&dt.fID, &id, kAliHLTComponentDataTypefIDsize);
-//       memcpy(&dt.fOrigin, &origin, kAliHLTComponentDataTypefOriginSize);
-//       AliHLTOUTBlockDescriptor desc(dt, spec, offset|i);
-//       iResult=AddBlockDescriptor(desc);
+      homer_uint64 id=pReader->GetBlockDataType( i );
+      homer_uint32 origin=pReader->GetBlockDataOrigin( i );
+      homer_uint32 spec=pReader->GetBlockDataSpec( i );
+      AliHLTComponentDataType dt;
+      memcpy(&dt.fID, &id, kAliHLTComponentDataTypefIDsize);
+      memcpy(&dt.fOrigin, &origin, kAliHLTComponentDataTypefOriginSize);
+      AliHLTOUTBlockDescriptor desc(dt, spec, offset|i);
+      iResult=AddBlockDescriptor(desc);
     }
   } else {
     iResult=-ENODEV;