Changing the color of HLT tracks slightly to be distinguished from
[u/mrichter/AliRoot.git] / HLT / global / AliHLTGlobalAgent.cxx
CommitLineData
ec6160d5 1// $Id$
2
3//**************************************************************************
4//* This file is property of and copyright by the ALICE HLT Project *
5//* ALICE Experiment at CERN, All rights reserved. *
6//* *
7//* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
8//* for The ALICE HLT Project. *
9//* *
10//* Permission to use, copy, modify and distribute this software and its *
11//* documentation strictly for non-commercial purposes is hereby granted *
12//* without fee, provided that the above copyright notice appears in all *
13//* copies and that both the copyright notice and this permission notice *
14//* appear in the supporting documentation. The authors make no claims *
15//* about the suitability of this software for any purpose. It is *
16//* provided "as is" without express or implied warranty. *
17//**************************************************************************
18
19/** @file AliHLTGlobalAgent.cxx
20 @author Matthias Richter
21 @date
22 @brief Agent of the libAliHLTGlobal library
23*/
24
25#include <cassert>
26#include "AliHLTGlobalAgent.h"
27
28// header files of library components
29#include "AliHLTGlobalTrackMergerComponent.h"
30
31/** global instance for agent registration */
32AliHLTGlobalAgent gAliHLTGlobalAgent;
33
34/** ROOT macro for the implementation of ROOT specific class methods */
35ClassImp(AliHLTGlobalAgent)
36
37AliHLTGlobalAgent::AliHLTGlobalAgent()
38 :
39 AliHLTModuleAgent("Global")
40{
41 // see header file for class documentation
42 // or
43 // refer to README to build package
44 // or
45 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
46}
47
48AliHLTGlobalAgent::~AliHLTGlobalAgent()
49{
50 // see header file for class documentation
51}
52
53int AliHLTGlobalAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const
54{
55 // see header file for class documentation
56 assert(pHandler);
57 if (!pHandler) return -EINVAL;
58 pHandler->AddComponent(new AliHLTGlobalTrackMergerComponent);
59 return 0;
60}
61
62int AliHLTGlobalAgent::GetHandlerDescription(AliHLTComponentDataType dt,
63 AliHLTUInt32_t /*spec*/,
64 AliHLTOUTHandlerDesc& desc) const
65{
66 // see header file for class documentation
67
68 // handler for the HLT readou list and global data data blocks {'HLTRDLST':'HLT '}
69 if (dt==AliHLTComponentDataTypeInitializer("HLTRDLST", kAliHLTDataOriginOut) ||
70 dt==AliHLTComponentDataTypeInitializer("HLTTRGDT", kAliHLTDataOriginOut)) {
71 desc=AliHLTOUTHandlerDesc(kProprietary, dt, GetModuleId());
72 return 1;
73 }
74
75 return 0;
76}
77
78AliHLTOUTHandler* AliHLTGlobalAgent::GetOutputHandler(AliHLTComponentDataType dt,
79 AliHLTUInt32_t /*spec*/)
80{
81 // see header file for class documentation
82
83 // handler for the HLT readou list and global data data blocks {'HLTRDLST':'HLT '}
84 if (dt==AliHLTComponentDataTypeInitializer("HLTRDLST", kAliHLTDataOriginOut) ||
85 dt==AliHLTComponentDataTypeInitializer("HLTTRGDT", kAliHLTDataOriginOut)) {
86 return NULL;
87 }
88
89 return NULL;
90}
91
92int AliHLTGlobalAgent::DeleteOutputHandler(AliHLTOUTHandler* pInstance)
93{
94 // see header file for class documentation
95 if (pInstance==NULL) return -EINVAL;
96
97 return 0;
98}