]>
Commit | Line | Data |
---|---|---|
d1ff7c16 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | /* $Id$ */ | |
17 | ||
6253e09b | 18 | /// |
19 | /// @file AliHLTMUONAgent.cxx | |
20 | /// @author Artur Szostak <artursz@iafrica.com> | |
21 | /// @date | |
22 | /// @brief Implementation of the AliHLTMUONAgent class. | |
23 | /// | |
d1ff7c16 | 24 | |
25 | #include "AliHLTMUONAgent.h" | |
6253e09b | 26 | #include "AliHLTMUONRecHitsSource.h" |
27 | #include "AliHLTMUONTriggerRecordsSource.h" | |
28 | #include "AliHLTMUONRootifierComponent.h" | |
29 | #include "AliHLTMUONHitReconstructorComponent.h" | |
30 | #include "AliHLTMUONTriggerReconstructorComponent.h" | |
31 | #include "AliHLTMUONMansoTrackerFSMComponent.h" | |
8134dd2e | 32 | #include "AliHLTMUONTriggerCalibratorComponent.h" |
33 | #include "AliHLTMUONTrackerCalibratorComponent.h" | |
0528e93a | 34 | #include "AliHLTMUONEmptyEventFilterComponent.h" |
d1ff7c16 | 35 | #include "AliRunLoader.h" |
36 | ||
6253e09b | 37 | // The single global instance of the dimuon HLT agent. |
38 | AliHLTMUONAgent AliHLTMUONAgent::fgkInstance; | |
d1ff7c16 | 39 | |
40 | ClassImp(AliHLTMUONAgent); | |
41 | ||
42 | ||
43 | AliHLTMUONAgent::AliHLTMUONAgent() : AliHLTModuleAgent() | |
44 | { | |
6253e09b | 45 | /// |
46 | /// Default constructor. | |
47 | /// | |
d1ff7c16 | 48 | } |
49 | ||
50 | AliHLTMUONAgent::~AliHLTMUONAgent() | |
51 | { | |
6253e09b | 52 | /// |
53 | /// Default destructor. | |
54 | /// | |
d1ff7c16 | 55 | } |
56 | ||
dee38f1b | 57 | const char* AliHLTMUONAgent::GetReconstructionChains(AliRawReader* /*rawReader*/, |
58 | AliRunLoader* /*runloader*/ | |
d1ff7c16 | 59 | ) const |
60 | { | |
6253e09b | 61 | /// |
62 | /// Inherited from AliHLTModuleAgent. | |
63 | /// Returns the top processing chain configurations for local event | |
64 | /// reconstruction. | |
65 | /// @param rawReader [in] AliRoot rawreader instance. | |
66 | /// @param runloader [in] AliRoot runloader | |
67 | /// @return string containing the top configurations separated by blanks. | |
68 | /// | |
69 | ||
d1ff7c16 | 70 | return "dhlt-simhits"; |
71 | } | |
72 | ||
73 | const char* AliHLTMUONAgent::GetRequiredComponentLibraries() const | |
74 | { | |
6253e09b | 75 | /// |
76 | /// Inherited from AliHLTModuleAgent. | |
77 | /// Returns a list of libraries which the configurations registered by | |
78 | /// this module agent depend on. | |
79 | /// @return list of component libraries as a blank-separated string. | |
80 | /// | |
81 | ||
d1ff7c16 | 82 | return "libGeom.so libMinuit.so libEG.so libTreePlayer.so libXMLIO.so " |
83 | "libVMC.so libESD.so libSTEER.so libGui.so libMUONraw.so libMUONgeometry.so " | |
84 | "libMUONmapping.so libMUONcalib.so libMUONbase.so libMUONsim.so libAliHLTMUON.so"; | |
85 | } | |
86 | ||
87 | ||
88 | int AliHLTMUONAgent::CreateConfigurations( | |
89 | AliHLTConfigurationHandler* handler, | |
dee38f1b | 90 | AliRawReader* /*rawReader*/, |
91 | AliRunLoader* /*runloader*/ | |
d1ff7c16 | 92 | ) const |
93 | { | |
6253e09b | 94 | /// |
95 | /// Register all processing configurations belonging to the dimuon HLT | |
96 | /// library with the AliHLTConfigurationHandler. | |
97 | /// @param handler the configuration handler | |
98 | /// @param rawReader [in] AliRoot rawreader instance. | |
99 | /// @param runloader AliRoot runloader | |
100 | /// @return Zero on success and error code if failed. | |
101 | /// | |
102 | ||
d1ff7c16 | 103 | if (handler == NULL) return 0; |
104 | handler->CreateConfiguration("dhlt-simhits", "DimuoRecHitsSource", NULL, "-simdata"); | |
105 | return 0; | |
106 | } | |
6253e09b | 107 | |
108 | ||
109 | int AliHLTMUONAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const | |
110 | { | |
111 | /// | |
112 | /// Registers all available components of this module. | |
113 | /// @param pHandler [in] instance of the component handler. | |
114 | /// | |
115 | ||
116 | if (pHandler == NULL) return -EINVAL; | |
117 | pHandler->AddComponent(new AliHLTMUONRecHitsSource); | |
118 | pHandler->AddComponent(new AliHLTMUONTriggerRecordsSource); | |
119 | pHandler->AddComponent(new AliHLTMUONRootifierComponent); | |
120 | pHandler->AddComponent(new AliHLTMUONHitReconstructorComponent); | |
121 | pHandler->AddComponent(new AliHLTMUONTriggerReconstructorComponent); | |
122 | pHandler->AddComponent(new AliHLTMUONMansoTrackerFSMComponent); | |
8134dd2e | 123 | pHandler->AddComponent(new AliHLTMUONTriggerCalibratorComponent); |
124 | pHandler->AddComponent(new AliHLTMUONTrackerCalibratorComponent); | |
0528e93a | 125 | pHandler->AddComponent(new AliHLTMUONEmptyEventFilterComponent); |
6253e09b | 126 | return 0; |
127 | } | |
128 |