]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/comp/AliHLTCompAgent.cxx
- introduced module Ids for agents
[u/mrichter/AliRoot.git] / HLT / comp / AliHLTCompAgent.cxx
index 81b44dfed49812837fced22ab49869f05dbd4bd0..05c9629f41ea29be9881a2bb79d4d92b5f8b5d91 100644 (file)
 #include "AliHLTConfiguration.h"
 
 // header files of library components
-// ....
+#include "AliHLTCOMPHuffmanAltroComponent.h"
+#include "AliHLTCOMPHuffmanAltroCalibComponent.h"
+
+// header file of the module preprocessor
+#include "AliHLTCompPreprocessor.h"
 
 /** global instance for agent registration */
 AliHLTCompAgent gAliHLTCompAgent;
@@ -43,6 +47,8 @@ AliHLTCompAgent gAliHLTCompAgent;
 ClassImp(AliHLTCompAgent)
 
 AliHLTCompAgent::AliHLTCompAgent()
+  :
+  AliHLTModuleAgent("Comp")
 {
   // see header file for class documentation
   // or
@@ -74,6 +80,9 @@ const char* AliHLTCompAgent::GetReconstructionChains(AliRawReader* /*rawReader*/
 const char* AliHLTCompAgent::GetRequiredComponentLibraries() const
 {
   // see header file for class documentation
+
+  // libAliHLTUtil.so for AliRawReaderPublisher
+  //return "libAliHLTUtil.so";
   return NULL;
 }
 
@@ -82,6 +91,17 @@ int AliHLTCompAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const
   // see header file for class documentation
   assert(pHandler);
   if (!pHandler) return -EINVAL;
-  //pHandler->AddComponent(new ...);
+  // use fCompressionSwitch = true for decompressed inputtype (i.e. compressed output)
+  pHandler->AddComponent(new AliHLTCOMPHuffmanAltroComponent(true));
+  // use fCompressionSwitch = false for compressed inputtype (i.e. decompressed output)
+  pHandler->AddComponent(new AliHLTCOMPHuffmanAltroComponent(false));
+  pHandler->AddComponent(new AliHLTCOMPHuffmanAltroCalibComponent);
+
   return 0;
 }
+
+AliHLTModulePreprocessor* AliHLTCompAgent::GetPreprocessor()
+{
+  // see header file for class documentation
+  return new AliHLTCompPreprocessor;
+}