4 #ifndef ALIHLTTPCSLICETRACKERCOMPONENT_H
5 #define ALIHLTTPCSLICETRACKERCOMPONENT_H
6 //* This file is property of and copyright by the ALICE HLT Project *
7 //* ALICE Experiment at CERN, All rights reserved. *
8 //* See cxx source for full Copyright notice *
10 /** @file AliHLTTPCSliceTrackerComponent.h
11 @author Timm Steinbeck, Matthias Richter
13 @brief The TPC conformal mapping tracker component.
16 #include "AliHLTProcessor.h"
18 class AliHLTTPCConfMapper;
19 class AliHLTTPCVertex;
20 class AliHLTTPCInterMerger;
23 * @class AliHLTTPCSliceTrackerComponent
24 * The TPC conformal mapping tracker component.
26 * Component ID: \b TPCSliceTracker <br>
27 * Library: \b libAliHLTTPC.
29 * Mandatory arguments: <br>
30 * \li -bfield <i> magnetic field </i> <br>
31 * should allways be used. If there is no magnetic field, use 0.00001
33 * Optional arguments: <br>
35 * will give fixed trackparameters for p-p runs.
37 * will give fixed trackparameters for Pb-Pb runs.
38 * \li -multiplicity <i> multiplicity </i> <br>
39 * set the multiplicity of your collitions. Used for Pb-Pb events.
40 * \li -disable-merger <br>
41 * turns off the intermerging on sectorlevel. Only use in spacial cases.
42 * \li -nonvertextracking <br>
43 * the tracking will do a reconstruction of clusters without vertex constraint.
44 * \li -mainvertextrackingoff <br>
45 * will turn off the tracking with vertex constraint. Use together with -nonvertextracking.
46 * \li -etarange <i> eta range </i> <br>
47 * sets the eta range for the tracking.
48 * \li -etasegment <i> eta segments </i> <br>
49 * let you set the number of eta segments in the trscker.
50 * \li -chi2cut <i> chiĀ² </i> <br>
51 * set the chiĀ² for the tracker.
52 * \li -rowscopetracklet <i> number of padrows </i> <br>
53 * tells the tracker how many padrows down it should look for the next cluster when making tracklets.
54 * \li -rowscopetrack <i> number of padrows </i> <br>
55 * tells the tracker how many padrows down it should look for the next cluster when making track.
56 * \li -trackletlength <i> number of clusters </i> <br>
57 * the minimum number of clusters to be on a tracklet.
58 * \li -tracklength <i> number of clusters </i> <br>
59 * the minimum number of clusters to be on a track.
61 * @ingroup alihlt_tpc_components
63 class AliHLTTPCSliceTrackerComponent : public AliHLTProcessor
66 /** default constructor */
67 AliHLTTPCSliceTrackerComponent();
69 virtual ~AliHLTTPCSliceTrackerComponent();
71 // Public functions to implement AliHLTComponent's interface.
72 // These functions are required for the registration process
74 /** interface function, see @ref AliHLTComponent for description */
75 const char* GetComponentID();
76 /** interface function, see @ref AliHLTComponent for description */
77 void GetInputDataTypes(AliHLTComponentDataTypeList& list);
78 /** interface function, see @ref AliHLTComponent for description */
79 AliHLTComponentDataType GetOutputDataType();
80 /** interface function, see @ref AliHLTComponent for description */
81 virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier );
82 /** interface function, see @ref AliHLTComponent for description */
83 AliHLTComponent* Spawn();
88 * Set Tracker parameters
89 * Knowledge on that has been lost, so somebody has to insert more
92 void SetTrackerParam(Int_t phiSegments=50,Int_t etaSegments=100,
93 Int_t trackletlength=3,Int_t tracklength=5,
94 Int_t rowscopetracklet=2,Int_t rowscopetrack=3,
95 Double_t minPtFit=0,Double_t maxangle=1.31,
96 Double_t goodDist=5,Double_t hitChi2Cut=10,
97 Double_t goodHitChi2=20,Double_t trackChi2Cut=50,
98 Int_t maxdist=50,Double_t maxphi=0.1,Double_t maxeta=0.1);
101 * Set Tracker parameters
102 * Knowledge on that has been lost, so somebody has to insert more
105 void SetTrackerParam( Bool_t doPP, Bool_t doPbPb, Int_t multiplicity,
106 Double_t bField, Int_t etasegment, Double_t hitchi2cut,
107 Int_t rowscopetracklet, Int_t rowscopetrack,
108 Int_t trackletlength, Int_t tracklength );
111 * Set default tracker parameters
112 * Knowledge on that has been lost, so somebody has to insert more
115 void SetTrackerParam1();
117 // Protected functions to implement AliHLTComponent's interface.
118 // These functions provide initialization as well as the actual processing
119 // capabilities of the component.
121 /** interface function, see @ref AliHLTComponent for description */
122 int DoInit( int argc, const char** argv );
123 /** interface function, see @ref AliHLTComponent for description */
125 /** interface function, see @ref AliHLTComponent for description */
126 int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
127 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
128 AliHLTUInt32_t& size, AliHLTComponentBlockDataList& outputBlocks );
130 int Reconfigure(const char* cdbEntry, const char* chainId);
132 using AliHLTProcessor::DoEvent;
135 /** copy constructor prohibited */
136 AliHLTTPCSliceTrackerComponent(const AliHLTTPCSliceTrackerComponent&);
137 /** assignment operator prohibited */
138 AliHLTTPCSliceTrackerComponent& operator=(const AliHLTTPCSliceTrackerComponent&);
140 * Configure the component.
141 * Parse a string for the configuration arguments and set the component
144 int Configure(const char* arguments);
146 /** instance of the tracker */
147 AliHLTTPCConfMapper* fTracker; //! transient
149 AliHLTTPCVertex* fVertex; //! transient
151 Float_t fEta[2]; // see above
152 /** switch for subsequent non-vertex tracking */
153 Bool_t fDoNonVertex; // see above
155 Bool_t fDoPP; // see above
157 Bool_t fDoPbPb; // see above
158 /** multiplicity estimate */
159 Int_t fMultiplicity; // see above
160 /** magnetic field */
161 Double_t fBField; // see above
163 Bool_t fnonvertextracking; // enable NONVERTEX Tracking
164 Bool_t fmainvertextracking; // enable MAINVERTEX Tracking
166 /** ParameterVariables for the trackeparameters */
169 /** phi_segments: Devide the space into phi_segments */
170 Int_t fPhisegment; //! transient
171 /** ets_segments: Devide the space into eta_segments */
172 Int_t fEtasegment; //! transient
173 /** trackletlength: Number of hits a tracklet has to have */
174 Int_t fTrackletlength; //! transient
175 /** tracklength: Number of hits a track has to have */
176 Int_t fTracklength; //! transient
177 /** rowscopetracklet: Search range of rows for a tracklet */
178 Int_t fRowscopetracklet; //! transient
179 /** rowscopetrack: Search range of rows for a track */
180 Int_t fRowscopetrack; //! transient
181 /** min_pt_fit: Cut for moment fit, use:SetMaxDca(min_pt_fit) */
182 Double_t fMinPtFit; //! transient
183 /** maxangle: AliHLTTPCTransform::Deg2Rad(10), max angle for the three point look aheand */
184 Double_t fMaxangle; //! transient
185 /** goodDist: Threshold distancs between two hits when building tracklets */
186 Double_t fGoodDist; //! transient
187 /** hitChi2Cut: Max chi2 of added hit to track */
188 Double_t fHitChi2Cut; //! transient
189 /** goodHitChi2: Stop looking for next hit to add if chi2 is less then goodHitChi2 */
190 Double_t fGoodHitChi2; //! transient
191 /** trackChi2Cut: Max chi2 for track after final fit */
192 Double_t fTrackChi2Cut; //! transient
193 /** maxdist: Maximum distance between two clusters when forming segments */
194 Int_t fMaxdist; //! transient
195 /** maxphi: Max phi difference for neighboring hits */
196 Double_t fMaxphi; //! transient
197 /** maxeta: Max eta difference for neighboring hits */
198 Double_t fMaxeta; //! transient
201 AliHLTTPCInterMerger *fpInterMerger; //! transient
203 ClassDef(AliHLTTPCSliceTrackerComponent, 0);