]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/SampleLib/AliHLTSampleComponent2.h
Update master to aliroot
[u/mrichter/AliRoot.git] / HLT / SampleLib / AliHLTSampleComponent2.h
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 /// @file   AliHLTSampleComponent2.h
9 /// @author Matthias Richter, Timm Steinbeck
10 /// @date   
11 /// @brief  Another sample processing component for the HLT.
12 ///
13
14 #include "AliHLTProcessor.h"
15
16 /**
17  * @class AliHLTSampleComponent2
18  * @brief An HLT sample component.
19  * This component does not any data processing at all. It just
20  * illustrates the existence of several components in ine library and
21  * allows to set up a very simple chain with different components.
22  * @ingroup alihlt_tutorial
23  */
24 class AliHLTSampleComponent2 : public AliHLTProcessor {
25 public:
26   AliHLTSampleComponent2();
27   virtual ~AliHLTSampleComponent2();
28
29   const char* GetComponentID() { return "Sample-component2";}
30   void GetInputDataTypes( AliHLTComponentDataTypeList& list) {
31     list.push_back(kAliHLTAnyDataType);
32   }
33   AliHLTComponentDataType GetOutputDataType() {return kAliHLTVoidDataType;}
34   virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier ) {constBase = 0;inputMultiplier = 0;};
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();
43   int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks, 
44                        AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr, 
45                        AliHLTUInt32_t& size, AliHLTComponentBlockDataList& outputBlocks );
46
47   using AliHLTProcessor::DoEvent;
48
49 private:
50
51   ClassDef(AliHLTSampleComponent2, 0)
52 };
53 #endif