StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AliHLTTPCCAParameters.h
1 /**************************************************************************
2  * This file is property of and copyright by the ALICE HLT Project *
3  * All rights reserved. *
4  * *
5  * Primary Authors: *
6  * Copyright 2009 Matthias Kretz <kretz@kde.org> *
7  * *
8  * Permission to use, copy, modify and distribute this software and its *
9  * documentation strictly for non-commercial purposes is hereby granted *
10  * without fee, provided that the above copyright notice appears in all *
11  * copies and that both the copyright notice and this permission notice *
12  * appear in the supporting documentation. The authors make no claims *
13  * about the suitability of this software for any purpose. It is *
14  * provided "as is" without express or implied warranty. *
15  **************************************************************************/
16 
17 #ifndef ALIHLTTPCCAPARAMETERS_H
18 #define ALIHLTTPCCAPARAMETERS_H
19 
20 #include "AliHLTTPCCADef.h"
21 
22 namespace AliHLTTPCCAParameters
23 {
24  enum {
28  MaximumExtrapolationRowGap = 5, // XXX 4 or even 3 seem to give better results
29 
34  MaximumRowGap = 4,
35 
40  MinimumHitsPerShared = 10,
41 
46  MinimumHitsForTracklet = 4,
47 
52  MinimumHitsForFragileTracklet = 10,
53 
58  MinimumHitsForTrack = MinimumHitsForTracklet, // 10
59 
64  MinimumHitsForGBTrack = 10, // 30
65 
66 
70  // NumberOfInnerRows = 13-1, // delete iRow = 12
71 
72  MaxNumberOfRows8 = 112, // this should be divideable by sfloat_v::Size = 8, (16 for Xeon Phi)
73 
77  NumberOfSlices = 24, // TODO: !!! read from file
78 
82  RowStep = 1,
83 
87  GridCreationCoeff = 2
88 
89  };
90 
94  static const float MinCellSize = 2.f;
95 
99  static const float HitPickUpFactor = 2.f;
100 
105  static const float NeighbourAreaSizeTgY[3] = {.6, 2., 2.}; // TODO choose appropriate and use > 1 iterations
106  static const float NeighbourAreaSizeTgZ[3] = {2., 2., 2.};
107 
108  // TODO describe
109  // curv = 1/R = (1/pt[GeV] * Bz[kGauss] * c[=0.00028]) . 1GeV -> curv = 0.0014
110  // errX ~= 0.12. dX ~= 2. curv+ = 0.06 - anyway additional error is significantly bigger
111 //#define USE_CURV_CUT // TODO don't work, problem with error estimation
112 #ifdef USE_CURV_CUT
113  static const float NeighbourCurvCut[3] = {0.03, .1, 3.};//{0.03, .1, 3.};
114 // static const float NeighbourCurvCutY[3] = {0.03, .1, 3.};//{0.03, .1, 3.};
115 // static const float NeighbourCurvCutZ[3] = {0.03, .1, 3.};//{0.03, .1, 3.};
116 #else
117  static const float NeighbourChiCut[3] = {0.2, 3., 3.};//{0.2, 3., 3.};
118 #endif // 1
119 
123  static const int NeighboursChainMinLength[3] = {3, 3, 3};
124 
128  static const float MinHitsMergeDist = 2;
129 
133 #ifndef __CINT__
134  static const sfloat_v MinimumQPt = 1.e-8f;
135 #else
136  static const float MinimumQPt = 1.e-8f;
137 #endif
138 
141  static const float MinTrackPurity = .8;
142 
147  static const float ExtraThresholdL = 0.2;
148 
152  static const float ExtraThreshold = 0.05;
153 
157  static const float RefThreshold = 1.;
158 
160  static const float XMax = 200.f;//maximum X of TPC
161  static const float XMin = 50.f;//maximum X of TPC
163 
164 } // namespace AliHLTTPCCAParameters
165 //namespace Parameters{ using namespace AliHLTTPCCAParameters; }
166 
167 namespace AliHLTTPCCAPParameters{
168 
174  enum{
178  MinimumHitsForMCTrack = 10,
179 
183  MinimumMCPointsForMCTrack = 10,
184 
188  MinimumHitsForRecoTrack = 4
189  }; // enum
190 
194  static const float MinTrackPurity = .9;
195 } // namespace AliHLTTPCCAPParameters
196 namespace PParameters{ using namespace AliHLTTPCCAPParameters; }
197 
198 namespace AliHLTTPCCASPParameters{
199  enum{
203  MinimumHitsForMCTrack = 5, // 30
204 
208  MinimumConsHitsForMCTrack = 5,
209 
213  MinimumHitsForRecoTrack = 4
214 
215  }; // enum
216 
220  static const float MinTrackPurity = PParameters::MinTrackPurity;
221 } // namespace AliHLTTPCCASPParameters
222 namespace SPParameters{ using namespace AliHLTTPCCASPParameters; }
223 
224 #endif // ALIHLTTPCCAPARAMETERS_H