]>
Commit | Line | Data |
---|---|---|
0af7cb2e | 1 | // $Id$ |
2 | ||
3 | #ifndef ALIHLTTRDCLUSTERIZERCOMPONENT_H | |
4 | #define ALIHLTTRDCLUSTERIZERCOMPONENT_H | |
5 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
6 | * See cxx source for full Copyright notice */ | |
7 | ||
8 | /** @file AliHLTTRDClusterizerComponent.h | |
9 | @author Timm Steinbeck, Matthias Richter | |
10 | @date | |
11 | @brief Declaration of a TRDClusterizer component. */ | |
12 | ||
13 | ||
14 | #include "AliHLTProcessor.h" | |
15 | class AliCDBManager; | |
dc2e6604 | 16 | class AliHLTTRDClusterizer; |
0af7cb2e | 17 | class AliRawReaderMemory; |
051a0e2d | 18 | class TFile; |
519f385f | 19 | class AliTRDrecoParam; |
0d66dbf5 | 20 | class AliTRDReconstructor; |
0af7cb2e | 21 | |
22 | /** | |
23 | * @class AliHLTTRDClusterizerComponent | |
24 | * @brief A TRDClusterizer HLT processing component. | |
25 | * | |
26 | * An implementiation of a TRDClusterizer component that just copies its input data | |
27 | * as a test, demonstration, and example of the HLT component scheme. | |
28 | * @ingroup alihlt_tutorial | |
29 | */ | |
30 | class AliHLTTRDClusterizerComponent : public AliHLTProcessor | |
31 | { | |
32 | public: | |
33 | AliHLTTRDClusterizerComponent(); | |
34 | virtual ~AliHLTTRDClusterizerComponent(); | |
35 | ||
36 | // Public functions to implement AliHLTComponent's interface. | |
37 | // These functions are required for the registration process | |
38 | ||
39 | const char* GetComponentID(); | |
40 | void GetInputDataTypes( vector<AliHLTComponent_DataType>& list); | |
41 | AliHLTComponent_DataType GetOutputDataType(); | |
42 | virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier ); | |
43 | AliHLTComponent* Spawn(); | |
44 | ||
45 | protected: | |
46 | ||
47 | // Protected functions to implement AliHLTComponent's interface. | |
48 | // These functions provide initialization as well as the actual processing | |
49 | // capabilities of the component. | |
50 | ||
51 | int DoInit( int argc, const char** argv ); | |
52 | int DoDeinit(); | |
53 | int DoEvent( const AliHLTComponent_EventData& evtData, const AliHLTComponent_BlockData* blocks, | |
54 | AliHLTComponent_TriggerData& trigData, AliHLTUInt8_t* outputPtr, | |
55 | AliHLTUInt32_t& size, vector<AliHLTComponent_BlockData>& outputBlocks ); | |
d76bc02a | 56 | |
d679dd6c | 57 | void PrintObject( TClonesArray* inClustersArray); |
d76bc02a | 58 | using AliHLTProcessor::DoEvent; |
0af7cb2e | 59 | |
d679dd6c | 60 | |
61 | ||
0af7cb2e | 62 | private: |
c7500dae | 63 | /** copy constructor prohibited */ |
64 | AliHLTTRDClusterizerComponent(const AliHLTTRDClusterizerComponent&); | |
65 | /** assignment operator prohibited */ | |
66 | AliHLTTRDClusterizerComponent& operator=(const AliHLTTRDClusterizerComponent&); | |
0af7cb2e | 67 | |
68 | // The size of the output data produced, as a percentage of the input data's size. | |
69 | // Can be greater than 100 (%) | |
0af7cb2e | 70 | |
3b021c25 | 71 | unsigned fOutputPercentage; // Output volume in percentage of the input |
0af7cb2e | 72 | |
3b021c25 | 73 | string fStrorageDBpath; // Default path for OCDB |
74 | ||
dc2e6604 | 75 | AliHLTTRDClusterizer *fClusterizer; //! Offline derived HLT clusterizer |
519f385f | 76 | AliTRDrecoParam *fRecoParam; //! Offline reco params |
3b021c25 | 77 | AliCDBManager *fCDB; //! Pointer to OCDB |
78 | AliRawReaderMemory *fMemReader; //! Input raw data reader | |
886e8d3d | 79 | AliTRDReconstructor *fReconstructor; |
80 | ||
051a0e2d | 81 | |
82 | string fGeometryFileName; // Path to geometry file | |
0af7cb2e | 83 | |
84 | ClassDef(AliHLTTRDClusterizerComponent, 0) | |
85 | ||
86 | }; | |
87 | #endif |