// $Id$ //************************************************************************** //* This file is property of and copyright by the ALICE HLT Project * //* ALICE Experiment at CERN, All rights reserved. * //* * //* Primary Authors: Matthias Richter * //* for The ALICE HLT Project. * //* * //* Permission to use, copy, modify and distribute this software and its * //* documentation strictly for non-commercial purposes is hereby granted * //* without fee, provided that the above copyright notice appears in all * //* copies and that both the copyright notice and this permission notice * //* appear in the supporting documentation. The authors make no claims * //* about the suitability of this software for any purpose. It is * //* provided "as is" without express or implied warranty. * //************************************************************************** /** @file AliHLTTriggerAgent.cxx @author Matthias Richter @date @brief Agent of the libAliHLTTrigger library */ #include #include "AliHLTTriggerAgent.h" // header files of library components #include "AliHLTEventSummaryProducerComponent.h" #include "AliHLTRunSummaryProducerComponent.h" /** global instance for agent registration */ AliHLTTriggerAgent gAliHLTTriggerAgent; /** ROOT macro for the implementation of ROOT specific class methods */ ClassImp(AliHLTTriggerAgent) AliHLTTriggerAgent::AliHLTTriggerAgent() : AliHLTModuleAgent("Trigger") { // see header file for class documentation // or // refer to README to build package // or // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt } AliHLTTriggerAgent::~AliHLTTriggerAgent() { // see header file for class documentation } int AliHLTTriggerAgent::RegisterComponents(AliHLTComponentHandler* pHandler) const { // see header file for class documentation assert(pHandler); if (!pHandler) return -EINVAL; //pHandler->AddComponent(new ); return 0; } int AliHLTTriggerAgent::GetHandlerDescription(AliHLTComponentDataType dt, AliHLTUInt32_t /*spec*/, AliHLTOUTHandlerDesc& desc) const { // see header file for class documentation // handler for the HLT readou list and trigger data data blocks {'HLTRDLST':'HLT '} if (dt==AliHLTComponentDataTypeInitializer("HLTRDLST", kAliHLTDataOriginOut) || dt==AliHLTComponentDataTypeInitializer("HLTTRGDT", kAliHLTDataOriginOut)) { desc=AliHLTOUTHandlerDesc(kProprietary, dt, GetModuleId()); return 1; } return 0; } AliHLTOUTHandler* AliHLTTriggerAgent::GetOutputHandler(AliHLTComponentDataType dt, AliHLTUInt32_t /*spec*/) { // see header file for class documentation // handler for the HLT readou list and trigger data data blocks {'HLTRDLST':'HLT '} if (dt==AliHLTComponentDataTypeInitializer("HLTRDLST", kAliHLTDataOriginOut) || dt==AliHLTComponentDataTypeInitializer("HLTTRGDT", kAliHLTDataOriginOut)) { return NULL; } return NULL; } int AliHLTTriggerAgent::DeleteOutputHandler(AliHLTOUTHandler* pInstance) { // see header file for class documentation if (pInstance==NULL) return -EINVAL; return 0; }