]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTOUTHomerBuffer.cxx
Using fNContrubutors in AliAODVertex for SPD vertices.
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTOUTHomerBuffer.cxx
index 8533014855d237ede5a46fda114fe8a365bd7430..a2d1fc75ebf0cf7271fdc4c452cb3eef870b0c22 100644 (file)
@@ -126,7 +126,7 @@ int AliHLTOUTHomerBuffer::ScanReader(AliHLTMonitoringReader* pReader, AliHLTUInt
 
     // first check if the offset allows to add all data blocks without exceeding the
     // range
-    while (nofBlocks<tmp1 && tmp2>0) {
+    while (nofBlocks>tmp1 && tmp2>0) {
       if (tmp2&0x1) {
        HLTError("index range %#x exceeded for %d data blocks", nofBlocks, offset);
        iResult=-ERANGE;
@@ -142,8 +142,8 @@ int AliHLTOUTHomerBuffer::ScanReader(AliHLTMonitoringReader* pReader, AliHLTUInt
       homer_uint32 origin=pReader->GetBlockDataOrigin( i );
       homer_uint32 spec=pReader->GetBlockDataSpec( i );
       AliHLTComponentDataType dt;
-      AliHLTComponent::SetDataType(dt, Swap64(id), Swap32(origin));
-      AliHLTOUTBlockDescriptor desc(dt, spec, offset|i);
+      AliHLTComponent::SetDataType(dt, ByteSwap64(id), ByteSwap32(origin));
+      AliHLTOUTBlockDescriptor desc(dt, spec, offset|i, this);
       HLTDebug("adding block %d: %s %#x", i, AliHLTComponent::DataType2Text(dt).c_str(), spec);
       iResult=AddBlockDescriptor(desc);
     }
@@ -151,7 +151,7 @@ int AliHLTOUTHomerBuffer::ScanReader(AliHLTMonitoringReader* pReader, AliHLTUInt
     if (iResult==EBADMSG) {
       HLTWarning("Format error in data block");
       iResult*=-1;
-    } else if (iResult==ENOKEY) {
+    } else if (iResult==126/*ENOKEY*/) {
       HLTWarning("Format error in data block: can not find HOMER block descriptor id");
       iResult*=-1;
     } else {