3 /**************************************************************************
4 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
7 * for The ALICE Off-line Project. *
9 * Permission to use, copy, modify and distribute this software and its *
10 * documentation strictly for non-commercial purposes is hereby granted *
11 * without fee, provided that the above copyright notice appears in all *
12 * copies and that both the copyright notice and this permission notice *
13 * appear in the supporting documentation. The authors make no claims *
14 * about the suitability of this software for any purpose. It is *
15 * provided "as is" without express or implied warranty. *
16 **************************************************************************/
18 /** @file AliHLTDataSource.cxx
19 @author Matthias Richter
21 @brief Base class implementation for HLT data source components. */
27 #include "AliHLTDataSource.h"
29 /** ROOT macro for the implementation of ROOT specific class methods */
30 ClassImp(AliHLTDataSource)
32 AliHLTDataSource::AliHLTDataSource()
36 AliHLTDataSource::~AliHLTDataSource()
40 void AliHLTDataSource::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
42 list.clear(); // there are no input data types
46 int AliHLTDataSource::ProcessEvent( const AliHLTComponentEventData& evtData,
47 const AliHLTComponentBlockData* blocks,
48 AliHLTComponentTriggerData& trigData,
49 AliHLTUInt8_t* outputPtr,
51 AliHLTUInt32_t& outputBlockCnt,
52 AliHLTComponentBlockData*& outputBlocks,
53 AliHLTComponentEventDoneData*& edd )
57 // this is currently just to get rid of the warning "unused parameter"
59 vector<AliHLTComponentBlockData> blockData;
60 if (evtData.fBlockCnt > 0) {
61 HLTWarning("Data source component skips imput data blocks");
63 iResult=GetEvent(evtData, trigData, outputPtr, size, blockData);
65 iResult=MakeOutputDataBlockList(blockData, &outputBlockCnt, &outputBlocks);