Fixing coding violations and getting rid of warnings.
[u/mrichter/AliRoot.git] / HLT / MUON / OfflineInterface / AliHLTMUONAgent.cxx
CommitLineData
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"
d1ff7c16 32#include "AliRunLoader.h"
33
6253e09b 34// The single global instance of the dimuon HLT agent.
35AliHLTMUONAgent AliHLTMUONAgent::fgkInstance;
d1ff7c16 36
37ClassImp(AliHLTMUONAgent);
38
39
40AliHLTMUONAgent::AliHLTMUONAgent() : AliHLTModuleAgent()
41{
6253e09b 42 ///
43 /// Default constructor.
44 ///
d1ff7c16 45}
46
47AliHLTMUONAgent::~AliHLTMUONAgent()
48{
6253e09b 49 ///
50 /// Default destructor.
51 ///
d1ff7c16 52}
53
dee38f1b 54const char* AliHLTMUONAgent::GetReconstructionChains(AliRawReader* /*rawReader*/,
55 AliRunLoader* /*runloader*/
d1ff7c16 56 ) const
57{
6253e09b 58 ///
59 /// Inherited from AliHLTModuleAgent.
60 /// Returns the top processing chain configurations for local event
61 /// reconstruction.
62 /// @param rawReader [in] AliRoot rawreader instance.
63 /// @param runloader [in] AliRoot runloader
64 /// @return string containing the top configurations separated by blanks.
65 ///
66
d1ff7c16 67 return "dhlt-simhits";
68}
69
70const char* AliHLTMUONAgent::GetRequiredComponentLibraries() const
71{
6253e09b 72 ///
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.
77 ///
78
d1ff7c16 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";
82}
83
84
85int AliHLTMUONAgent::CreateConfigurations(
86 AliHLTConfigurationHandler* handler,
dee38f1b 87 AliRawReader* /*rawReader*/,
88 AliRunLoader* /*runloader*/
d1ff7c16 89 ) const
90{
6253e09b 91 ///
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.
98 ///
99
d1ff7c16 100 if (handler == NULL) return 0;
101 handler->CreateConfiguration("dhlt-simhits", "DimuoRecHitsSource", NULL, "-simdata");
102 return 0;
103}
6253e09b 104
105
106int AliHLTMUONAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const
107{
108 ///
109 /// Registers all available components of this module.
110 /// @param pHandler [in] instance of the component handler.
111 ///
112
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);
120 return 0;
121}
122