Line data Source code
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 2 : AliHLTAgentSim gAliHLTAgentSim;
40 :
41 : /** ROOT macro for the implementation of ROOT specific class methods */
42 2 : ClassImp(AliHLTAgentSim)
43 :
44 : AliHLTAgentSim::AliHLTAgentSim()
45 : :
46 1 : AliHLTModuleAgent("sim")
47 5 : {
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 2 : }
54 :
55 0 : AliHLTAgentSim::~AliHLTAgentSim()
56 2 : {
57 : // see header file for class documentation
58 3 : }
59 :
60 : int AliHLTAgentSim::CreateConfigurations(AliHLTConfigurationHandler* /*handler*/,
61 : AliRawReader* /*rawReader*/,
62 : AliRunLoader* /*runloader*/) const
63 : {
64 : // see header file for class documentation
65 0 : return 0;
66 : }
67 :
68 : const char* AliHLTAgentSim::GetReconstructionChains(AliRawReader* /*rawReader*/,
69 : AliRunLoader* /*runloader*/) const
70 : {
71 : // see header file for class documentation
72 0 : return NULL;
73 : }
74 :
75 : const char* AliHLTAgentSim::GetRequiredComponentLibraries() const
76 : {
77 : // see header file for class documentation
78 0 : return NULL;
79 : }
80 :
81 : int AliHLTAgentSim::RegisterComponents(AliHLTComponentHandler* pHandler) const
82 : {
83 : // see header file for class documentation
84 2 : assert(pHandler);
85 1 : if (!pHandler) return -EINVAL;
86 2 : pHandler->AddComponent(new AliHLTOUTComponent);
87 2 : pHandler->AddComponent(new AliHLTOUTComponent(AliHLTOUTComponent::kDigits));
88 2 : pHandler->AddComponent(new AliHLTOUTComponent(AliHLTOUTComponent::kRaw));
89 1 : return 0;
90 1 : }
|