]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/SampleLib/AliHLTSampleComponent1.h
Added a dummy component into the sample library.
[u/mrichter/AliRoot.git] / HLT / SampleLib / AliHLTSampleComponent1.h
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
8 /* AliHLTSampleComponent1
9  */
10
11 #include "AliHLTProcessor.h"
12
13 class AliHLTSampleComponent1 : public AliHLTProcessor {
14 public:
15   AliHLTSampleComponent1();
16   virtual ~AliHLTSampleComponent1();
17
18   const char* GetComponentID() { return "Sample-component1";}
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   virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier ) {constBase = 0;inputMultiplier = 0;};
28
29   // Spawn function, return new class instance
30   AliHLTComponent* Spawn() {return new AliHLTSampleComponent1;};
31
32  protected:
33   
34   int DoInit( int argc, const char** argv );
35   int DoDeinit();
36   int DoEvent( const AliHLTComponent_EventData& evtData, const AliHLTComponent_BlockData* blocks, 
37                        AliHLTComponent_TriggerData& trigData, AliHLTUInt8_t* outputPtr, 
38                        AliHLTUInt32_t& size, vector<AliHLTComponent_BlockData>& outputBlocks );
39
40 private:
41   static const AliHLTComponent_DataType inputDataTypes[];
42   static const AliHLTComponent_DataType outputDataType;
43
44   ClassDef(AliHLTSampleComponent1, 0)
45 };
46 #endif