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 AliHLTDataSink.cxx
20 @author Matthias Richter
22 @brief Base class implementation for HLT data source components. */
28 #include "AliHLTDataSink.h"
30 /** ROOT macro for the implementation of ROOT specific class methods */
31 ClassImp(AliHLTDataSink)
33 AliHLTDataSink::AliHLTDataSink()
35 // see header file for class documentation
37 // refer to README to build package
39 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
42 AliHLTDataSink::~AliHLTDataSink()
44 // see header file for class documentation
47 AliHLTComponentDataType AliHLTDataSink::GetOutputDataType()
49 // see header file for class documentation
50 AliHLTComponentDataType dt =
51 {sizeof(AliHLTComponentDataType),
52 kAliHLTVoidDataTypeID,
53 kAliHLTVoidDataOrigin};
57 void AliHLTDataSink::GetOutputDataSize( unsigned long& constBase, double& inputMultiplier )
59 // see header file for class documentation
64 int AliHLTDataSink::DoProcessing( const AliHLTComponentEventData& evtData,
65 const AliHLTComponentBlockData* blocks,
66 AliHLTComponentTriggerData& trigData,
67 AliHLTUInt8_t* outputPtr,
69 vector<AliHLTComponentBlockData>& outputBlocks,
70 AliHLTComponentEventDoneData*& edd )
72 // see header file for class documentation
77 // this is currently just to get rid of the warning "unused parameter"
80 iResult=DumpEvent(evtData, blocks, trigData);
84 int AliHLTDataSink::DumpEvent( const AliHLTComponentEventData& evtData,
85 const AliHLTComponentBlockData* blocks,
86 AliHLTComponentTriggerData& trigData )
88 // we just forward to the high level method, all other parameters already
89 // have been stored internally
90 return DumpEvent(evtData, trigData);
93 int AliHLTDataSink::DumpEvent( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData)
95 HLTFatal("no processing method implemented");