1 /**************************************************************************
2 * Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
19 /// @file AliHLTMUONAgent.cxx
20 /// @author Artur Szostak <artursz@iafrica.com>
22 /// @brief Implementation of the AliHLTMUONAgent class.
25 #include "AliHLTMUONAgent.h"
26 #include "AliHLTMUONRecHitsSource.h"
27 #include "AliHLTMUONTriggerRecordsSource.h"
28 #include "AliHLTMUONRootifierComponent.h"
29 #include "AliHLTMUONHitReconstructorComponent.h"
30 #include "AliHLTMUONTriggerReconstructorComponent.h"
31 #include "AliHLTMUONMansoTrackerFSMComponent.h"
32 #include "AliRunLoader.h"
34 // The single global instance of the dimuon HLT agent.
35 AliHLTMUONAgent AliHLTMUONAgent::fgkInstance;
37 ClassImp(AliHLTMUONAgent);
40 AliHLTMUONAgent::AliHLTMUONAgent() : AliHLTModuleAgent()
43 /// Default constructor.
47 AliHLTMUONAgent::~AliHLTMUONAgent()
50 /// Default destructor.
54 const char* AliHLTMUONAgent::GetReconstructionChains(AliRawReader* /*rawReader*/,
55 AliRunLoader* /*runloader*/
59 /// Inherited from AliHLTModuleAgent.
60 /// Returns the top processing chain configurations for local event
62 /// @param rawReader [in] AliRoot rawreader instance.
63 /// @param runloader [in] AliRoot runloader
64 /// @return string containing the top configurations separated by blanks.
67 return "dhlt-simhits";
70 const char* AliHLTMUONAgent::GetRequiredComponentLibraries() const
73 /// Inherited from AliHLTModuleAgent.
74 /// Returns a list of libraries which the configurations registered by
75 /// this module agent depend on.
76 /// @return list of component libraries as a blank-separated string.
79 return "libGeom.so libMinuit.so libEG.so libTreePlayer.so libXMLIO.so "
80 "libVMC.so libESD.so libSTEER.so libGui.so libMUONraw.so libMUONgeometry.so "
81 "libMUONmapping.so libMUONcalib.so libMUONbase.so libMUONsim.so libAliHLTMUON.so";
85 int AliHLTMUONAgent::CreateConfigurations(
86 AliHLTConfigurationHandler* handler,
87 AliRawReader* /*rawReader*/,
88 AliRunLoader* /*runloader*/
92 /// Register all processing configurations belonging to the dimuon HLT
93 /// library with the AliHLTConfigurationHandler.
94 /// @param handler the configuration handler
95 /// @param rawReader [in] AliRoot rawreader instance.
96 /// @param runloader AliRoot runloader
97 /// @return Zero on success and error code if failed.
100 if (handler == NULL) return 0;
101 handler->CreateConfiguration("dhlt-simhits", "DimuoRecHitsSource", NULL, "-simdata");
106 int AliHLTMUONAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const
109 /// Registers all available components of this module.
110 /// @param pHandler [in] instance of the component handler.
113 if (pHandler == NULL) return -EINVAL;
114 pHandler->AddComponent(new AliHLTMUONRecHitsSource);
115 pHandler->AddComponent(new AliHLTMUONTriggerRecordsSource);
116 pHandler->AddComponent(new AliHLTMUONRootifierComponent);
117 pHandler->AddComponent(new AliHLTMUONHitReconstructorComponent);
118 pHandler->AddComponent(new AliHLTMUONTriggerReconstructorComponent);
119 pHandler->AddComponent(new AliHLTMUONMansoTrackerFSMComponent);