]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/BASE/util/AliHLTAgentUtil.cxx
Update for complying with train (first round)
[u/mrichter/AliRoot.git] / HLT / BASE / util / AliHLTAgentUtil.cxx
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   AliHLTAgentUtil.cxx
20     @author Matthias Richter
21     @date   
22     @brief  Agent of the libAliHLTUtil library
23 */
24
25 #include <cassert>
26 #include "AliHLTAgentUtil.h"
27 #include "AliHLTConfiguration.h"
28
29 // header files of library components
30 #include "AliHLTDataGenerator.h"
31 #include "AliHLTRawReaderPublisherComponent.h"
32 #include "AliHLTLoaderPublisherComponent.h"
33 #include "AliHLTRootFileStreamerComponent.h"
34 #include "AliHLTRootFileWriterComponent.h"
35 #include "AliHLTRootFilePublisherComponent.h"
36 #include "AliHLTFileWriter.h"
37 #include "AliHLTFilePublisher.h"
38 #include "AliHLTBlockFilterComponent.h"
39
40 /** global instance for agent registration */
41 AliHLTAgentUtil gAliHLTAgentUtil;
42
43 /** ROOT macro for the implementation of ROOT specific class methods */
44 ClassImp(AliHLTAgentUtil)
45
46 AliHLTAgentUtil::AliHLTAgentUtil()
47   :
48   AliHLTModuleAgent("Util")
49 {
50   // see header file for class documentation
51   // or
52   // refer to README to build package
53   // or
54   // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
55 }
56
57 AliHLTAgentUtil::~AliHLTAgentUtil()
58 {
59   // see header file for class documentation
60 }
61
62 int AliHLTAgentUtil::CreateConfigurations(AliHLTConfigurationHandler* /*handler*/,
63                                           AliRawReader* /*rawReader*/,
64                                           AliRunLoader* /*runloader*/) const
65 {
66   // see header file for class documentation
67   return 0;
68 }
69
70 const char* AliHLTAgentUtil::GetReconstructionChains(AliRawReader* /*rawReader*/,
71                                                      AliRunLoader* /*runloader*/) const
72 {
73   // see header file for class documentation
74   return NULL;
75 }
76
77 const char* AliHLTAgentUtil::GetRequiredComponentLibraries() const
78 {
79   // see header file for class documentation
80   return NULL;
81 }
82
83 int AliHLTAgentUtil::RegisterComponents(AliHLTComponentHandler* pHandler) const
84 {
85   // see header file for class documentation
86   assert(pHandler);
87   if (!pHandler) return -EINVAL;
88   pHandler->AddComponent(new AliHLTDataGenerator);
89   pHandler->AddComponent(new AliHLTRawReaderPublisherComponent);
90   pHandler->AddComponent(new AliHLTLoaderPublisherComponent);
91   pHandler->AddComponent(new AliHLTRootFileStreamerComponent);
92   pHandler->AddComponent(new AliHLTRootFileWriterComponent);
93   pHandler->AddComponent(new AliHLTRootFilePublisherComponent);
94   pHandler->AddComponent(new AliHLTFileWriter);
95   pHandler->AddComponent(new AliHLTFilePublisher);
96   pHandler->AddComponent(new AliHLTBlockFilterComponent);
97   return 0;
98 }