]>
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 | ||
b22e91eb | 8 | /** @file AliHLTSampleComponent2.h |
9 | @author Matthias Richter, Timm Steinbeck | |
10 | @date | |
11 | @brief Another sample processing component for the HLT. */ | |
c5318542 | 12 | |
13 | #include "AliHLTProcessor.h" | |
14 | ||
b22e91eb | 15 | /** |
16 | * @class AliHLTSampleComponent2 | |
17 | * @brief An HLT sample component | |
18 | * @ingroup alihlt_tutorial | |
19 | */ | |
c5318542 | 20 | class AliHLTSampleComponent2 : public AliHLTProcessor { |
21 | public: | |
22 | AliHLTSampleComponent2(); | |
23 | virtual ~AliHLTSampleComponent2(); | |
24 | ||
25 | const char* GetComponentID() { return "Sample-component2";} | |
8ede8717 | 26 | void GetInputDataTypes( vector<AliHLTComponentDataType>& list) { |
27 | const AliHLTComponentDataType* pType=inputDataTypes; | |
c5318542 | 28 | while (pType->fID!=0) { |
29 | list.push_back(*pType); | |
30 | pType++; | |
31 | } | |
32 | } | |
8ede8717 | 33 | AliHLTComponentDataType 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 AliHLTSampleComponent2;}; | |
38 | ||
39 | protected: | |
40 | ||
41 | int DoInit( int argc, const char** argv ); | |
42 | int DoDeinit(); | |
8ede8717 | 43 | int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, |
44 | AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, | |
45 | AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks ); | |
c5318542 | 46 | |
47 | private: | |
8ede8717 | 48 | static const AliHLTComponentDataType inputDataTypes[]; |
49 | static const AliHLTComponentDataType outputDataType; | |
c5318542 | 50 | |
51 | ClassDef(AliHLTSampleComponent2, 0) | |
52 | }; | |
53 | #endif |