]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTMisc.cxx
adding rootcint support for HLT data structs and constants in order to be used from...
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTMisc.cxx
index 9b7477fe7da314483d443c0ccb1993e77cb4fd22..7e8274daa6634c4fca8c9739b64985ebbe326a74 100644 (file)
@@ -111,3 +111,16 @@ TObject* AliHLTMisc::ExtractObject(AliCDBEntry* /*entry*/)
   // see header file for function documentation
   return NULL;
 }
+
+ostream  &operator<<(ostream &out, const AliHLTComponentDataType &dt)
+{
+  // printout of AliHLTComponentDataType struct
+  char id[kAliHLTComponentDataTypefIDsize+1];
+  strncpy(id, dt.fID, kAliHLTComponentDataTypefIDsize);
+  id[kAliHLTComponentDataTypefIDsize]=0;
+  char origin[kAliHLTComponentDataTypefOriginSize+1];
+  strncpy(origin, dt.fOrigin, kAliHLTComponentDataTypefOriginSize);
+  origin[kAliHLTComponentDataTypefOriginSize]=0;
+  out << "{" << id << ":" << origin << "}";
+  return out;
+}