]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/AliHLTTPCSliceTrackerComponent.h
added skeleton for HLTpendolino library
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCSliceTrackerComponent.h
CommitLineData
71d7c760 1// XEmacs -*-C++-*-
2// @(#) $Id$
3
4#ifndef ALIHLTTPCSLICETRACKERCOMPONENT_H
5#define ALIHLTTPCSLICETRACKERCOMPONENT_H
297174de 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 *
71d7c760 9
de554e07 10/** @file AliHLTTPCSliceTrackerComponent.h
11 @author Timm Steinbeck, Matthias Richter
12 @date
13 @brief The TPC conformal mapping tracker component.
14*/
71d7c760 15
16#include "AliHLTProcessor.h"
71d7c760 17
a6c02c85 18class AliHLTTPCConfMapper;
19class AliHLTTPCVertex;
ecefc48a 20class AliHLTTPCInterMerger;
71d7c760 21
de554e07 22/**
23 * @class AliHLTTPCSliceTrackerComponent
24 * The TPC conformal mapping tracker component.
25 *
e6421c43 26 * Component ID: \b TPCSliceTracker <br>
27 * Library: \b libAliHLTTPC.
28 *
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
de554e07 32 *
e6421c43 33 * Optional arguments: <br>
34 * \li -pp-run <br>
35 * will give fixed trackparameters for p-p runs.
36 * \li -Pb-Pb-run <br>
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.
887a0bd9 60 * \li -clusterZ <i> cutoff in z-direction (cm) </i> <br>
61 * makes the tracker to not read in Clusters with a higher value then the
62 * one given in both directions
e6421c43 63 *
2efb85be 64 * @ingroup alihlt_tpc_components
de554e07 65 */
71d7c760 66class AliHLTTPCSliceTrackerComponent : public AliHLTProcessor
6235cd38 67{
68public:
69 /** default constructor */
70 AliHLTTPCSliceTrackerComponent();
6235cd38 71 /** destructor */
72 virtual ~AliHLTTPCSliceTrackerComponent();
71d7c760 73
5df0cbb9 74 // Public functions to implement AliHLTComponent's interface.
75 // These functions are required for the registration process
71d7c760 76
5df0cbb9 77 /** interface function, see @ref AliHLTComponent for description */
78 const char* GetComponentID();
79 /** interface function, see @ref AliHLTComponent for description */
7bcd6cad 80 void GetInputDataTypes(AliHLTComponentDataTypeList& list);
5df0cbb9 81 /** interface function, see @ref AliHLTComponent for description */
82 AliHLTComponentDataType GetOutputDataType();
83 /** interface function, see @ref AliHLTComponent for description */
84 virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier );
85 /** interface function, see @ref AliHLTComponent for description */
86 AliHLTComponent* Spawn();
a655eae3 87
6235cd38 88protected:
71d7c760 89
5df0cbb9 90 /**
91 * Set Tracker parameters
92 * Knowledge on that has been lost, so somebody has to insert more
93 * documentation.
94 */
95 void SetTrackerParam(Int_t phiSegments=50,Int_t etaSegments=100,
96 Int_t trackletlength=3,Int_t tracklength=5,
97 Int_t rowscopetracklet=2,Int_t rowscopetrack=3,
98 Double_t minPtFit=0,Double_t maxangle=1.31,
99 Double_t goodDist=5,Double_t hitChi2Cut=10,
100 Double_t goodHitChi2=20,Double_t trackChi2Cut=50,
e6421c43 101 Int_t maxdist=50,Double_t maxphi=0.1,Double_t maxeta=0.1);
71d7c760 102
5df0cbb9 103 /**
104 * Set Tracker parameters
105 * Knowledge on that has been lost, so somebody has to insert more
106 * documentation.
107 */
e6421c43 108 void SetTrackerParam( Bool_t doPP, Bool_t doPbPb, Int_t multiplicity,
109 Double_t bField, Int_t etasegment, Double_t hitchi2cut,
110 Int_t rowscopetracklet, Int_t rowscopetrack,
111 Int_t trackletlength, Int_t tracklength );
5df0cbb9 112
113 /**
114 * Set default tracker parameters
115 * Knowledge on that has been lost, so somebody has to insert more
116 * documentation.
117 */
118 void SetTrackerParam1();
119
120 // Protected functions to implement AliHLTComponent's interface.
121 // These functions provide initialization as well as the actual processing
122 // capabilities of the component.
123
124 /** interface function, see @ref AliHLTComponent for description */
125 int DoInit( int argc, const char** argv );
126 /** interface function, see @ref AliHLTComponent for description */
127 int DoDeinit();
128 /** interface function, see @ref AliHLTComponent for description */
129 int DoEvent( const AliHLTComponentEventData& evtData, const AliHLTComponentBlockData* blocks,
130 AliHLTComponentTriggerData& trigData, AliHLTUInt8_t* outputPtr,
7bcd6cad 131 AliHLTUInt32_t& size, AliHLTComponentBlockDataList& outputBlocks );
5d2abf3b 132
669159ae 133 int Reconfigure(const char* cdbEntry, const char* chainId);
134
5d2abf3b 135 using AliHLTProcessor::DoEvent;
5df0cbb9 136
6235cd38 137private:
cb703d46 138 /** copy constructor prohibited */
139 AliHLTTPCSliceTrackerComponent(const AliHLTTPCSliceTrackerComponent&);
140 /** assignment operator prohibited */
141 AliHLTTPCSliceTrackerComponent& operator=(const AliHLTTPCSliceTrackerComponent&);
669159ae 142 /**
143 * Configure the component.
144 * Parse a string for the configuration arguments and set the component
145 * properties.
146 */
147 int Configure(const char* arguments);
71d7c760 148
6235cd38 149 /** instance of the tracker */
150 AliHLTTPCConfMapper* fTracker; //! transient
151 /** vertex object */
152 AliHLTTPCVertex* fVertex; //! transient
153 /** eta range */
154 Float_t fEta[2]; // see above
155 /** switch for subsequent non-vertex tracking */
156 Bool_t fDoNonVertex; // see above
157 /** */
158 Bool_t fDoPP; // see above
e6421c43 159 /** */
160 Bool_t fDoPbPb; // see above
6235cd38 161 /** multiplicity estimate */
162 Int_t fMultiplicity; // see above
163 /** magnetic field */
164 Double_t fBField; // see above
71d7c760 165
6235cd38 166 Bool_t fnonvertextracking; // enable NONVERTEX Tracking
167 Bool_t fmainvertextracking; // enable MAINVERTEX Tracking
738c049f 168
e6421c43 169 /** ParameterVariables for the trackeparameters */
170
171
172 /** phi_segments: Devide the space into phi_segments */
173 Int_t fPhisegment; //! transient
174 /** ets_segments: Devide the space into eta_segments */
175 Int_t fEtasegment; //! transient
176 /** trackletlength: Number of hits a tracklet has to have */
177 Int_t fTrackletlength; //! transient
178 /** tracklength: Number of hits a track has to have */
179 Int_t fTracklength; //! transient
180 /** rowscopetracklet: Search range of rows for a tracklet */
181 Int_t fRowscopetracklet; //! transient
182 /** rowscopetrack: Search range of rows for a track */
183 Int_t fRowscopetrack; //! transient
184 /** min_pt_fit: Cut for moment fit, use:SetMaxDca(min_pt_fit) */
185 Double_t fMinPtFit; //! transient
186 /** maxangle: AliHLTTPCTransform::Deg2Rad(10), max angle for the three point look aheand */
187 Double_t fMaxangle; //! transient
188 /** goodDist: Threshold distancs between two hits when building tracklets */
189 Double_t fGoodDist; //! transient
190 /** hitChi2Cut: Max chi2 of added hit to track */
191 Double_t fHitChi2Cut; //! transient
192 /** goodHitChi2: Stop looking for next hit to add if chi2 is less then goodHitChi2 */
193 Double_t fGoodHitChi2; //! transient
194 /** trackChi2Cut: Max chi2 for track after final fit */
195 Double_t fTrackChi2Cut; //! transient
196 /** maxdist: Maximum distance between two clusters when forming segments */
197 Int_t fMaxdist; //! transient
198 /** maxphi: Max phi difference for neighboring hits */
199 Double_t fMaxphi; //! transient
200 /** maxeta: Max eta difference for neighboring hits */
201 Double_t fMaxeta; //! transient
202
ecefc48a 203 /** merger object */
204 AliHLTTPCInterMerger *fpInterMerger; //! transient
205
6235cd38 206 ClassDef(AliHLTTPCSliceTrackerComponent, 0);
71d7c760 207
6235cd38 208};
71d7c760 209#endif