3 /**************************************************************************
4 * This file is property of and copyright by the ALICE HLT Project *
5 * ALICE Experiment at CERN, All rights reserved. *
7 * Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
8 * for The ALICE HLT Project. *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
19 /** @file AliHLTCompAgent.cxx
20 @author Matthias Richter
22 @brief Agent of the libAliHLTComp library
25 // see header file for class documentation
27 // refer to README to build package
29 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
33 #include "AliHLTCompAgent.h"
35 // header files of library components
36 #include "AliHLTCOMPHuffmanAltroComponent.h"
37 #include "AliHLTCOMPHuffmanAltroCalibComponent.h"
39 // header file of the module preprocessor
40 #include "AliHLTCompPreprocessor.h"
42 /** global instance for agent registration */
43 AliHLTCompAgent gAliHLTCompAgent;
45 /** ROOT macro for the implementation of ROOT specific class methods */
46 ClassImp(AliHLTCompAgent)
48 AliHLTCompAgent::AliHLTCompAgent()
50 AliHLTModuleAgent("Comp")
52 // see header file for class documentation
54 // refer to README to build package
56 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
59 AliHLTCompAgent::~AliHLTCompAgent()
61 // see header file for class documentation
64 int AliHLTCompAgent::CreateConfigurations(AliHLTConfigurationHandler* /*handler*/,
65 AliRawReader* /*rawReader*/,
66 AliRunLoader* /*runloader*/) const
68 // see header file for class documentation
72 const char* AliHLTCompAgent::GetReconstructionChains(AliRawReader* /*rawReader*/,
73 AliRunLoader* /*runloader*/) const
75 // see header file for class documentation
79 const char* AliHLTCompAgent::GetRequiredComponentLibraries() const
81 // see header file for class documentation
83 // libAliHLTUtil.so for AliRawReaderPublisher
84 //return "libAliHLTUtil.so";
88 int AliHLTCompAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const
90 // see header file for class documentation
92 if (!pHandler) return -EINVAL;
93 // use fCompressionSwitch = true for decompressed inputtype (i.e. compressed output)
94 pHandler->AddComponent(new AliHLTCOMPHuffmanAltroComponent(true));
95 // use fCompressionSwitch = false for compressed inputtype (i.e. decompressed output)
96 pHandler->AddComponent(new AliHLTCOMPHuffmanAltroComponent(false));
97 pHandler->AddComponent(new AliHLTCOMPHuffmanAltroCalibComponent);
102 AliHLTModulePreprocessor* AliHLTCompAgent::GetPreprocessor()
104 // see header file for class documentation
105 return new AliHLTCompPreprocessor;