4 #ifndef ALIHLTTPCGLOBALMERGERCOMPONENT_H
5 #define ALIHLTTPCGLOBALMERGERCOMPONENT_H
6 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7 * See cxx source for full Copyright notice */
9 /** @file AliHLTTPCGlobalMergerComponent.h
10 @author Timm Steinbeck, Matthias Richter
12 @brief HLT TPC global merger component.
15 // see below for class documentation
17 // refer to README to build package
19 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
21 #include "AliHLTProcessor.h"
23 class AliHLTTPCGlobalMerger;
24 class AliHLTTPCVertex;
27 * @class AliHLTTPCGlobalMergerComponent
28 * The TPC global merger component
29 * The component is the interface to the AliHLTGlobalMerger processing
32 * @ingroup alihlt_tpc_components
34 class AliHLTTPCGlobalMergerComponent : public AliHLTProcessor
37 /** standard constructor */
38 AliHLTTPCGlobalMergerComponent();
39 /** standard destructor */
40 virtual ~AliHLTTPCGlobalMergerComponent();
42 // Public functions to implement AliHLTComponent's interface.
43 // These functions are required for the registration process
45 /** @see component interface @ref AliHLTComponent::GetComponentID */
46 const char* GetComponentID();
48 /** @see component interface @ref AliHLTComponent::GetInputDataTypes */
49 void GetInputDataTypes(AliHLTComponentDataTypeList& list);
51 /** @see component interface @ref AliHLTComponent::GetOutputDataType */
52 AliHLTComponentDataType GetOutputDataType();
54 /** @see component interface @ref AliHLTComponent::GetOutputDataSize */
55 virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier );
57 /** @see component interface @ref AliHLTComponent::Spawn */
58 AliHLTComponent* Spawn();
65 void SetMergerParameters(Double_t maxy=2.0,Double_t maxz=3.0,Double_t maxkappa=0.003,
66 Double_t maxpsi=0.1,Double_t maxtgl=0.05);
68 // Protected functions to implement AliHLTComponent's interface.
69 // These functions provide initialization as well as the actual processing
70 // capabilities of the component.
73 /** @see component interface @ref AliHLTComponent::DoInit */
74 int DoInit( int argc, const char** argv );
76 /** @see component interface @ref AliHLTComponent::DoDeinit */
79 /** @see component interface @ref AliHLTProcessor::DoEvent */
80 int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
81 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
82 AliHLTUInt32_t& size, AliHLTComponentBlockDataList& outputBlocks );
84 using AliHLTProcessor::DoEvent;
87 /** copy constructor prohibited */
88 AliHLTTPCGlobalMergerComponent(const AliHLTTPCGlobalMergerComponent&);
89 /** assignment operator prohibited */
90 AliHLTTPCGlobalMergerComponent& operator=(const AliHLTTPCGlobalMergerComponent&);
92 /** the global merger object */
93 AliHLTTPCGlobalMerger* fGlobalMerger; //!
94 /** the vertexer object */
95 AliHLTTPCVertex* fVertex; //!
99 int fSlice; // see above
100 /** block descriptor for the vertex data block */
101 const AliHLTComponentBlockData* fVertexBlock; //! transient
102 /** index of the vertex data block */
103 unsigned fVertexBlockIndex; // see above
104 /** block descriptor for the tracklet data block */
105 const AliHLTComponentBlockData* fTrackletBlock; //! transient
106 /** index of the tracklet data block */
107 unsigned fTrackletBlockIndex; // see above
110 ClassDef(AliHLTTPCGlobalMergerComponent, 0)