]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/sim/AliHLTAgentSim.cxx
- synchronized the overlay macro to the changes of the drawing one
[u/mrichter/AliRoot.git] / HLT / sim / AliHLTAgentSim.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   AliHLTAgentSim.cxx
20     @author Matthias Richter
21     @date   
22     @brief  Agent of the libHLTsim library
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 "AliHLTAgentSim.h"
34
35 // header files of library components
36 #include "AliHLTOUTComponent.h"
37
38 /** global instance for agent registration */
39 AliHLTAgentSim gAliHLTAgentSim;
40
41 /** ROOT macro for the implementation of ROOT specific class methods */
42 ClassImp(AliHLTAgentSim)
43
44 AliHLTAgentSim::AliHLTAgentSim()
45   :
46   AliHLTModuleAgent("sim")
47 {
48   // see header file for class documentation
49   // or
50   // refer to README to build package
51   // or
52   // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
53 }
54
55 AliHLTAgentSim::~AliHLTAgentSim()
56 {
57   // see header file for class documentation
58 }
59
60 int AliHLTAgentSim::CreateConfigurations(AliHLTConfigurationHandler* /*handler*/,
61                                           AliRawReader* /*rawReader*/,
62                                           AliRunLoader* /*runloader*/) const
63 {
64   // see header file for class documentation
65   return 0;
66 }
67
68 const char* AliHLTAgentSim::GetReconstructionChains(AliRawReader* /*rawReader*/,
69                                                      AliRunLoader* /*runloader*/) const
70 {
71   // see header file for class documentation
72   return NULL;
73 }
74
75 const char* AliHLTAgentSim::GetRequiredComponentLibraries() const
76 {
77   // see header file for class documentation
78   return NULL;
79 }
80
81 int AliHLTAgentSim::RegisterComponents(AliHLTComponentHandler* pHandler) const
82 {
83   // see header file for class documentation
84   assert(pHandler);
85   if (!pHandler) return -EINVAL;
86   pHandler->AddComponent(new AliHLTOUTComponent);
87   pHandler->AddComponent(new AliHLTOUTComponent(AliHLTOUTComponent::kDigits));
88   pHandler->AddComponent(new AliHLTOUTComponent(AliHLTOUTComponent::kRaw));
89   return 0;
90 }