// $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 AliHLTDataSource.cxx @author Matthias Richter @date @brief Base class implementation for HLT data source components. */ #if __GNUC__>= 3 using namespace std; #endif #include "AliHLTDataSource.h" /** ROOT macro for the implementation of ROOT specific class methods */ ClassImp(AliHLTDataSource) AliHLTDataSource::AliHLTDataSource() { // see header file for class documentation // or // refer to README to build package // or // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt } AliHLTDataSource::~AliHLTDataSource() { // see header file for class documentation } void AliHLTDataSource::GetInputDataTypes( vector& list) { // see header file for class documentation list.clear(); // there are no input data types } int AliHLTDataSource::DoProcessing( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size, vector& outputBlocks, AliHLTComponentEventDoneData*& edd ) { // see header file for class documentation int iResult=0; if (evtData.fBlockCnt > 0) { int unknown=-1; for (unsigned int block=0; block=0 && warningCount++<5) { HLTWarning("Data source component skips input data blocks: first unknown block %s", DataType2Text(blocks[unknown].fDataType).c_str()); } } iResult=GetEvent(evtData, trigData, outputPtr, size, outputBlocks); HLTDebug("component %s (%p) GetEvent finished (%d)", GetComponentID(), this, iResult); edd = NULL; return iResult; } int AliHLTDataSource::GetEvent( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* /*outputPtr*/, AliHLTUInt32_t& size, vector& /*outputBlocks*/ ) { // we just forward to the high level method, all other parameters already // have been stored internally size=0; return GetEvent(evtData, trigData); } int AliHLTDataSource::GetEvent( const AliHLTComponentEventData& /*evtData*/, AliHLTComponentTriggerData& /*trigData*/) { HLTFatal("no processing method implemented"); return -ENOSYS; }