]>
Commit | Line | Data |
---|---|---|
ae51a735 | 1 | // @(#) $Id$ |
2 | ||
3 | /************************************************************************** | |
4 | * This file is property of and copyright by the ALICE HLT Project * | |
5 | * ALICE Experiment at CERN, All rights reserved. * | |
6 | * * | |
7 | * Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> * | |
8 | * for The ALICE HLT Project. * | |
9 | * * | |
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 | **************************************************************************/ | |
18 | ||
19 | /** @file AliHLTCompAgent.cxx | |
20 | @author Matthias Richter | |
21 | @date | |
a183f221 | 22 | @brief Agent of the libAliHLTComp library |
ae51a735 | 23 | */ |
24 | ||
25 | // see header file for class documentation | |
26 | // or | |
27 | // refer to README to build package | |
28 | // or | |
29 | // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt | |
30 | ||
31 | #include <cassert> | |
32 | #include <cerrno> | |
33 | #include "AliHLTCompAgent.h" | |
ae51a735 | 34 | |
35 | // header files of library components | |
c2440081 | 36 | #include "AliHLTCOMPHuffmanAltroComponent.h" |
37 | #include "AliHLTCOMPHuffmanAltroCalibComponent.h" | |
ae51a735 | 38 | |
12ec5482 | 39 | // header file of the module preprocessor |
40 | #include "AliHLTCompPreprocessor.h" | |
41 | ||
ae51a735 | 42 | /** global instance for agent registration */ |
43 | AliHLTCompAgent gAliHLTCompAgent; | |
44 | ||
45 | /** ROOT macro for the implementation of ROOT specific class methods */ | |
46 | ClassImp(AliHLTCompAgent) | |
47 | ||
48 | AliHLTCompAgent::AliHLTCompAgent() | |
626bfcc1 | 49 | : |
50 | AliHLTModuleAgent("Comp") | |
ae51a735 | 51 | { |
52 | // see header file for class documentation | |
53 | // or | |
54 | // refer to README to build package | |
55 | // or | |
56 | // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt | |
57 | } | |
58 | ||
59 | AliHLTCompAgent::~AliHLTCompAgent() | |
60 | { | |
61 | // see header file for class documentation | |
62 | } | |
63 | ||
64 | int AliHLTCompAgent::CreateConfigurations(AliHLTConfigurationHandler* /*handler*/, | |
65 | AliRawReader* /*rawReader*/, | |
66 | AliRunLoader* /*runloader*/) const | |
67 | { | |
68 | // see header file for class documentation | |
69 | return 0; | |
70 | } | |
71 | ||
72 | const char* AliHLTCompAgent::GetReconstructionChains(AliRawReader* /*rawReader*/, | |
73 | AliRunLoader* /*runloader*/) const | |
74 | { | |
75 | // see header file for class documentation | |
76 | return NULL; | |
77 | } | |
78 | ||
79 | const char* AliHLTCompAgent::GetRequiredComponentLibraries() const | |
80 | { | |
81 | // see header file for class documentation | |
c2440081 | 82 | |
83 | // libAliHLTUtil.so for AliRawReaderPublisher | |
84 | //return "libAliHLTUtil.so"; | |
ae51a735 | 85 | return NULL; |
86 | } | |
87 | ||
88 | int AliHLTCompAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const | |
89 | { | |
90 | // see header file for class documentation | |
91 | assert(pHandler); | |
92 | if (!pHandler) return -EINVAL; | |
c2440081 | 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); | |
98 | ||
ae51a735 | 99 | return 0; |
100 | } | |
12ec5482 | 101 | |
102 | AliHLTModulePreprocessor* AliHLTCompAgent::GetPreprocessor() | |
103 | { | |
104 | // see header file for class documentation | |
105 | return new AliHLTCompPreprocessor; | |
106 | } |