]>
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" | |
0528e93a | 32 | #include "AliHLTMUONEmptyEventFilterComponent.h" |
d1ff7c16 | 33 | #include "AliRunLoader.h" |
34 | ||
6253e09b | 35 | // The single global instance of the dimuon HLT agent. |
36 | AliHLTMUONAgent AliHLTMUONAgent::fgkInstance; | |
d1ff7c16 | 37 | |
38 | ClassImp(AliHLTMUONAgent); | |
39 | ||
40 | ||
626bfcc1 | 41 | AliHLTMUONAgent::AliHLTMUONAgent() : AliHLTModuleAgent("MUON") |
d1ff7c16 | 42 | { |
6253e09b | 43 | /// |
44 | /// Default constructor. | |
45 | /// | |
d1ff7c16 | 46 | } |
47 | ||
48 | AliHLTMUONAgent::~AliHLTMUONAgent() | |
49 | { | |
6253e09b | 50 | /// |
51 | /// Default destructor. | |
52 | /// | |
d1ff7c16 | 53 | } |
54 | ||
dee38f1b | 55 | const char* AliHLTMUONAgent::GetReconstructionChains(AliRawReader* /*rawReader*/, |
56 | AliRunLoader* /*runloader*/ | |
d1ff7c16 | 57 | ) const |
58 | { | |
6253e09b | 59 | /// |
60 | /// Inherited from AliHLTModuleAgent. | |
61 | /// Returns the top processing chain configurations for local event | |
62 | /// reconstruction. | |
63 | /// @param rawReader [in] AliRoot rawreader instance. | |
64 | /// @param runloader [in] AliRoot runloader | |
65 | /// @return string containing the top configurations separated by blanks. | |
66 | /// | |
67 | ||
d1ff7c16 | 68 | return "dhlt-simhits"; |
69 | } | |
70 | ||
71 | const char* AliHLTMUONAgent::GetRequiredComponentLibraries() const | |
72 | { | |
6253e09b | 73 | /// |
74 | /// Inherited from AliHLTModuleAgent. | |
75 | /// Returns a list of libraries which the configurations registered by | |
76 | /// this module agent depend on. | |
77 | /// @return list of component libraries as a blank-separated string. | |
78 | /// | |
79 | ||
d1ff7c16 | 80 | return "libGeom.so libMinuit.so libEG.so libTreePlayer.so libXMLIO.so " |
81 | "libVMC.so libESD.so libSTEER.so libGui.so libMUONraw.so libMUONgeometry.so " | |
82 | "libMUONmapping.so libMUONcalib.so libMUONbase.so libMUONsim.so libAliHLTMUON.so"; | |
83 | } | |
84 | ||
85 | ||
86 | int AliHLTMUONAgent::CreateConfigurations( | |
87 | AliHLTConfigurationHandler* handler, | |
dee38f1b | 88 | AliRawReader* /*rawReader*/, |
89 | AliRunLoader* /*runloader*/ | |
d1ff7c16 | 90 | ) const |
91 | { | |
6253e09b | 92 | /// |
93 | /// Register all processing configurations belonging to the dimuon HLT | |
94 | /// library with the AliHLTConfigurationHandler. | |
95 | /// @param handler the configuration handler | |
96 | /// @param rawReader [in] AliRoot rawreader instance. | |
97 | /// @param runloader AliRoot runloader | |
98 | /// @return Zero on success and error code if failed. | |
99 | /// | |
100 | ||
d1ff7c16 | 101 | if (handler == NULL) return 0; |
102 | handler->CreateConfiguration("dhlt-simhits", "DimuoRecHitsSource", NULL, "-simdata"); | |
103 | return 0; | |
104 | } | |
6253e09b | 105 | |
106 | ||
107 | int AliHLTMUONAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const | |
108 | { | |
109 | /// | |
110 | /// Registers all available components of this module. | |
111 | /// @param pHandler [in] instance of the component handler. | |
112 | /// | |
113 | ||
114 | if (pHandler == NULL) return -EINVAL; | |
115 | pHandler->AddComponent(new AliHLTMUONRecHitsSource); | |
116 | pHandler->AddComponent(new AliHLTMUONTriggerRecordsSource); | |
117 | pHandler->AddComponent(new AliHLTMUONRootifierComponent); | |
118 | pHandler->AddComponent(new AliHLTMUONHitReconstructorComponent); | |
119 | pHandler->AddComponent(new AliHLTMUONTriggerReconstructorComponent); | |
120 | pHandler->AddComponent(new AliHLTMUONMansoTrackerFSMComponent); | |
0528e93a | 121 | pHandler->AddComponent(new AliHLTMUONEmptyEventFilterComponent); |
6253e09b | 122 | return 0; |
123 | } | |
124 |