]>
Commit | Line | Data |
---|---|---|
c5318542 | 1 | // @(#) $Id$ |
2 | ||
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 */ | |
7 | ||
8 | /* AliHLTSampleComponent2 | |
9 | */ | |
10 | ||
11 | #include "AliHLTProcessor.h" | |
12 | ||
13 | class AliHLTSampleComponent2 : public AliHLTProcessor { | |
14 | public: | |
15 | AliHLTSampleComponent2(); | |
16 | virtual ~AliHLTSampleComponent2(); | |
17 | ||
18 | const char* GetComponentID() { return "Sample-component2";} | |
19 | void GetInputDataTypes( vector<AliHLTComponent_DataType>& list) { | |
20 | const AliHLTComponent_DataType* pType=inputDataTypes; | |
21 | while (pType->fID!=0) { | |
22 | list.push_back(*pType); | |
23 | pType++; | |
24 | } | |
25 | } | |
26 | AliHLTComponent_DataType GetOutputDataType() {return outputDataType;} | |
27 | ||
28 | // Spawn function, return new class instance | |
29 | AliHLTComponent* Spawn() {return new AliHLTSampleComponent2;}; | |
30 | ||
31 | protected: | |
32 | ||
33 | int DoInit( int argc, const char** argv ); | |
34 | int DoDeinit(); | |
35 | int DoEvent( AliHLTComponent_EventData evtData, AliHLTComponent_BlockData* blocks, | |
36 | AliHLTComponent_TriggerData trigData, AliHLTUInt8_t* outputPtr, | |
37 | AliHLTUInt32_t* size, vector<AliHLTComponent_BlockData>& outputBlocks ); | |
38 | ||
39 | private: | |
40 | static const AliHLTComponent_DataType inputDataTypes[]; | |
41 | static const AliHLTComponent_DataType outputDataType; | |
42 | ||
43 | ClassDef(AliHLTSampleComponent2, 0) | |
44 | }; | |
45 | #endif |