// @(#) $Id$ #ifndef ALIHLTSAMPLECOMPONENT2_H #define ALIHLTSAMPLECOMPONENT2_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /** @file AliHLTSampleComponent2.h @author Matthias Richter, Timm Steinbeck @date @brief Another sample processing component for the HLT. */ #include "AliHLTProcessor.h" /** * @class AliHLTSampleComponent2 * @brief An HLT sample component. * This component does not any data processing at all. It just * illustrates the existence of several components in ine library and * allows to set up a very simple chain with different components. * @ingroup alihlt_tutorial */ class AliHLTSampleComponent2 : public AliHLTProcessor { public: AliHLTSampleComponent2(); virtual ~AliHLTSampleComponent2(); const char* GetComponentID() { return "Sample-component2";} void GetInputDataTypes( vector& list) { list.push_back(kAliHLTAnyDataType); } AliHLTComponentDataType GetOutputDataType() {return kAliHLTVoidDataType;} virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier ) {constBase = 0;inputMultiplier = 0;}; // Spawn function, return new class instance AliHLTComponent* Spawn() {return new AliHLTSampleComponent2;}; protected: int DoInit( int argc, const char** argv ); int DoDeinit(); int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, AliHLTUInt32_t& size, vector& outputBlocks ); using AliHLTProcessor::DoEvent; private: ClassDef(AliHLTSampleComponent2, 0) }; #endif