3 #ifndef ALIHLTSAMPLECOMPONENT2_H
4 #define ALIHLTSAMPLECOMPONENT2_H
5 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
8 /// @file AliHLTSampleComponent2.h
9 /// @author Matthias Richter, Timm Steinbeck
11 /// @brief Another sample processing component for the HLT.
14 #include "AliHLTProcessor.h"
17 * @class AliHLTSampleComponent2
18 * @brief An HLT sample component.
19 * This component does not any data processing at all. It just
20 * illustrates the existence of several components in ine library and
21 * allows to set up a very simple chain with different components.
22 * @ingroup alihlt_tutorial
24 class AliHLTSampleComponent2 : public AliHLTProcessor {
26 AliHLTSampleComponent2();
27 virtual ~AliHLTSampleComponent2();
29 const char* GetComponentID() { return "Sample-component2";}
30 void GetInputDataTypes( AliHLTComponentDataTypeList& list) {
31 list.push_back(kAliHLTAnyDataType);
33 AliHLTComponentDataType GetOutputDataType() {return kAliHLTVoidDataType;}
34 virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier ) {constBase = 0;inputMultiplier = 0;};
36 // Spawn function, return new class instance
37 AliHLTComponent* Spawn() {return new AliHLTSampleComponent2;};
41 int DoInit( int argc, const char** argv );
43 int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
44 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
45 AliHLTUInt32_t& size, AliHLTComponentBlockDataList& outputBlocks );
47 using AliHLTProcessor::DoEvent;
51 ClassDef(AliHLTSampleComponent2, 0)