]>
Commit | Line | Data |
---|---|---|
c5318542 | 1 | // @(#) $Id$ |
2 | ||
3 | #ifndef ALIHLTSAMPLECOMPONENT1_H | |
4 | #define ALIHLTSAMPLECOMPONENT1_H | |
5 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
6 | * See cxx source for full Copyright notice */ | |
7 | ||
b22e91eb | 8 | /** @file AliHLTSampleComponent1.h |
9 | @author Matthias Richter, Timm Steinbeck | |
10 | @date | |
11 | @brief A sample processing component for the HLT. */ | |
c5318542 | 12 | |
13 | #include "AliHLTProcessor.h" | |
14 | ||
b22e91eb | 15 | /** |
16 | * @class AliHLTSampleComponent1 | |
17 | * @brief An HLT sample component | |
18 | * @ingroup alihlt_tutorial | |
19 | */ | |
c5318542 | 20 | class AliHLTSampleComponent1 : public AliHLTProcessor { |
21 | public: | |
22 | AliHLTSampleComponent1(); | |
23 | virtual ~AliHLTSampleComponent1(); | |
24 | ||
25 | const char* GetComponentID() { return "Sample-component1";} | |
26 | void GetInputDataTypes( vector<AliHLTComponent_DataType>& list) { | |
27 | const AliHLTComponent_DataType* pType=inputDataTypes; | |
28 | while (pType->fID!=0) { | |
29 | list.push_back(*pType); | |
30 | pType++; | |
31 | } | |
32 | } | |
33 | AliHLTComponent_DataType GetOutputDataType() {return outputDataType;} | |
71d7c760 | 34 | virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier ) {constBase = 0;inputMultiplier = 0;}; |
c5318542 | 35 | |
36 | // Spawn function, return new class instance | |
37 | AliHLTComponent* Spawn() {return new AliHLTSampleComponent1;}; | |
38 | ||
39 | protected: | |
40 | ||
41 | int DoInit( int argc, const char** argv ); | |
42 | int DoDeinit(); | |
71d7c760 | 43 | int DoEvent( const AliHLTComponent_EventData& evtData, const AliHLTComponent_BlockData* blocks, |
44 | AliHLTComponent_TriggerData& trigData, AliHLTUInt8_t* outputPtr, | |
45 | AliHLTUInt32_t& size, vector<AliHLTComponent_BlockData>& outputBlocks ); | |
c5318542 | 46 | |
47 | private: | |
48 | static const AliHLTComponent_DataType inputDataTypes[]; | |
49 | static const AliHLTComponent_DataType outputDataType; | |
50 | ||
51 | ClassDef(AliHLTSampleComponent1, 0) | |
52 | }; | |
53 | #endif |