]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/MUON/OfflineInterface/AliHLTMUONAgent.cxx
Fixing coding violations and getting rid of warnings.
[u/mrichter/AliRoot.git] / HLT / MUON / OfflineInterface / AliHLTMUONAgent.cxx
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
18 ///
19 /// @file   AliHLTMUONAgent.cxx
20 /// @author Artur Szostak <artursz@iafrica.com>
21 /// @date   
22 /// @brief  Implementation of the AliHLTMUONAgent class.
23 ///
24
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"
33
34 // The single global instance of the dimuon HLT agent.
35 AliHLTMUONAgent AliHLTMUONAgent::fgkInstance;
36
37 ClassImp(AliHLTMUONAgent);
38
39
40 AliHLTMUONAgent::AliHLTMUONAgent() : AliHLTModuleAgent()
41 {
42         ///
43         /// Default constructor.
44         ///
45 }
46
47 AliHLTMUONAgent::~AliHLTMUONAgent()
48 {
49         ///
50         /// Default destructor.
51         ///
52 }
53
54 const char* AliHLTMUONAgent::GetReconstructionChains(AliRawReader* /*rawReader*/,
55                                                      AliRunLoader* /*runloader*/
56         ) const
57 {
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         
67         return "dhlt-simhits";
68 }
69
70 const char* AliHLTMUONAgent::GetRequiredComponentLibraries() const
71 {
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         
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
85 int AliHLTMUONAgent::CreateConfigurations(
86                 AliHLTConfigurationHandler* handler,
87                 AliRawReader* /*rawReader*/,
88                 AliRunLoader* /*runloader*/
89         ) const
90 {
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         
100         if (handler == NULL) return 0;
101         handler->CreateConfiguration("dhlt-simhits", "DimuoRecHitsSource", NULL, "-simdata");
102         return 0;
103 }
104
105
106 int 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