]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/SampleLib/AliHLTSampleComponent1.h
build system clean-up, support for custom LinkDef added
[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 /** @file   AliHLTSampleComponent1.h
9     @author Matthias Richter, Timm Steinbeck
10     @date   
11     @brief  A sample processing component for the HLT. */
12
13 #include "AliHLTProcessor.h"
14
15 /**
16  * @class AliHLTSampleComponent1
17  * @brief An HLT sample component.
18  * This component does not any data processing at all. It just
19  * illustrates the existence of several components in ine library and
20  * allows to set up a very simple chain with different components.
21  * @ingroup alihlt_tutorial
22  */
23 class AliHLTSampleComponent1 : public AliHLTProcessor {
24 public:
25   AliHLTSampleComponent1();
26   virtual ~AliHLTSampleComponent1();
27
28   const char* GetComponentID() { return "Sample-component1";}
29   void GetInputDataTypes( vector<AliHLTComponentDataType>& list) {
30     list.push_back(kAliHLTAnyDataType);
31   }
32   AliHLTComponentDataType GetOutputDataType() {return kAliHLTVoidDataType;}
33   virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier ) {constBase = 0;inputMultiplier = 0;};
34
35   // Spawn function, return new class instance
36   AliHLTComponent* Spawn() {return new AliHLTSampleComponent1;};
37
38  protected:
39   
40   int DoInit( int argc, const char** argv );
41   int DoDeinit();
42   int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
43                        AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, 
44                        AliHLTUInt32_t& size, vector<AliHLTComponentBlockData>& outputBlocks );
45
46 private:
47
48   ClassDef(AliHLTSampleComponent1, 0)
49 };
50 #endif