]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/SampleLib/AliHLTSampleComponent1.h
coding conventions and documentation
[u/mrichter/AliRoot.git] / HLT / SampleLib / AliHLTSampleComponent1.h
CommitLineData
c5318542 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
b22e91eb 8/** @file AliHLTSampleComponent1.h
9 @author Matthias Richter, Timm Steinbeck
10 @date
11 @brief A sample processing component for the HLT. */
c5318542 12
13#include "AliHLTProcessor.h"
14
b22e91eb 15/**
16 * @class AliHLTSampleComponent1
17 * @brief An HLT sample component
18 * @ingroup alihlt_tutorial
19 */
c5318542 20class AliHLTSampleComponent1 : public AliHLTProcessor {
21public:
22 AliHLTSampleComponent1();
23 virtual ~AliHLTSampleComponent1();
24
25 const char* GetComponentID() { return "Sample-component1";}
8ede8717 26 void GetInputDataTypes( vector<AliHLTComponentDataType>& list) {
f644d3f1 27 const AliHLTComponentDataType* pType=fgInputDataTypes;
c5318542 28 while (pType->fID!=0) {
29 list.push_back(*pType);
30 pType++;
31 }
32 }
f644d3f1 33 AliHLTComponentDataType GetOutputDataType() {return kAliHLTVoidDataType;}
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 AliHLTSampleComponent1;};
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
47private:
f644d3f1 48 /** array of input data types */
49 static const AliHLTComponentDataType fgInputDataTypes[]; // see above
c5318542 50
51 ClassDef(AliHLTSampleComponent1, 0)
52};
53#endif