3 //**************************************************************************
4 //* This file is property of and copyright by the ALICE HLT Project *
5 //* ALICE Experiment at CERN, All rights reserved. *
7 //* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
8 //* for The ALICE HLT Project. *
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 //**************************************************************************
19 /** @file AliHLTTriggerAgent.cxx
20 @author Matthias Richter
22 @brief Agent of the libAliHLTTrigger library
26 #include "AliHLTTriggerAgent.h"
28 // header files of library components
29 #include "AliHLTEventSummaryProducerComponent.h"
30 #include "AliHLTRunSummaryProducerComponent.h"
32 /** global instance for agent registration */
33 AliHLTTriggerAgent gAliHLTTriggerAgent;
35 /** ROOT macro for the implementation of ROOT specific class methods */
36 ClassImp(AliHLTTriggerAgent)
38 AliHLTTriggerAgent::AliHLTTriggerAgent()
40 AliHLTModuleAgent("Trigger")
42 // see header file for class documentation
44 // refer to README to build package
46 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
49 AliHLTTriggerAgent::~AliHLTTriggerAgent()
51 // see header file for class documentation
54 int AliHLTTriggerAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const
56 // see header file for class documentation
58 if (!pHandler) return -EINVAL;
59 //pHandler->AddComponent(new );
63 int AliHLTTriggerAgent::GetHandlerDescription(AliHLTComponentDataType dt,
64 AliHLTUInt32_t /*spec*/,
65 AliHLTOUTHandlerDesc& desc) const
67 // see header file for class documentation
69 // handler for the HLT readou list and trigger data data blocks {'HLTRDLST':'HLT '}
70 if (dt==AliHLTComponentDataTypeInitializer("HLTRDLST", kAliHLTDataOriginOut) ||
71 dt==AliHLTComponentDataTypeInitializer("HLTTRGDT", kAliHLTDataOriginOut)) {
72 desc=AliHLTOUTHandlerDesc(kProprietary, dt, GetModuleId());
79 AliHLTOUTHandler* AliHLTTriggerAgent::GetOutputHandler(AliHLTComponentDataType dt,
80 AliHLTUInt32_t /*spec*/)
82 // see header file for class documentation
84 // handler for the HLT readou list and trigger data data blocks {'HLTRDLST':'HLT '}
85 if (dt==AliHLTComponentDataTypeInitializer("HLTRDLST", kAliHLTDataOriginOut) ||
86 dt==AliHLTComponentDataTypeInitializer("HLTTRGDT", kAliHLTDataOriginOut)) {
93 int AliHLTTriggerAgent::DeleteOutputHandler(AliHLTOUTHandler* pInstance)
95 // see header file for class documentation
96 if (pInstance==NULL) return -EINVAL;