Project
Loading...
Searching...
No Matches
Configuration.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
15
16#ifndef TRACKINGITSU_INCLUDE_CONFIGURATION_H_
17#define TRACKINGITSU_INCLUDE_CONFIGURATION_H_
18
19#ifndef GPUCA_GPUCODE_DEVICE
20#include <array>
21#include <limits>
22#include <vector>
23#include <cmath>
24#endif
25
28
29namespace o2::its
30{
31
33 int CellMinimumLevel() const noexcept { return MinTrackLength - constants::ClustersPerCell + 1; }
34 int NeighboursPerRoad() const noexcept { return NLayers - 3; }
35 int CellsPerRoad() const noexcept { return NLayers - 2; }
36 int TrackletsPerRoad() const noexcept { return NLayers - 1; }
37 std::string asString() const;
38
39 int NLayers = 7;
40 int DeltaROF = 0;
41 std::vector<float> LayerZ = {16.333f + 1, 16.333f + 1, 16.333f + 1, 42.140f + 1, 42.140f + 1, 73.745f + 1, 73.745f + 1};
42 std::vector<float> LayerRadii = {2.33959f, 3.14076f, 3.91924f, 19.6213f, 24.5597f, 34.388f, 39.3329f};
43 std::vector<float> LayerxX0 = {5.e-3f, 5.e-3f, 5.e-3f, 1.e-2f, 1.e-2f, 1.e-2f, 1.e-2f};
44 std::vector<float> LayerResolution = {5.e-4f, 5.e-4f, 5.e-4f, 5.e-4f, 5.e-4f, 5.e-4f, 5.e-4f};
45 std::vector<float> SystErrorY2 = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f};
46 std::vector<float> SystErrorZ2 = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f};
47 int ZBins{256};
48 int PhiBins{128};
50 bool UseDiamond = false;
51 float Diamond[3] = {0.f, 0.f, 0.f};
52
57 float NSigmaCut = 5;
58 float PVres = 1.e-2f;
60 float TrackletMinPt = 0.3f;
68 float MaxChi2NDF = 30.f;
69 std::vector<float> MinPt = {0.f, 0.f, 0.f, 0.f};
70 unsigned char StartLayerMask = 0x7F;
71 bool FindShortTracks = false;
73 bool SaveTimeBenchmarks = false;
74 bool DoUPCIteration = false;
77 bool UseTrackFollower = false;
78 bool UseTrackFollowerTop = false;
79 bool UseTrackFollowerBot = false;
80 bool UseTrackFollowerMix = false;
83
85
86 bool PrintMemory = false; // print allocator usage in epilog report
87 size_t MaxMemory = std::numeric_limits<size_t>::max();
88 bool DropTFUponFailure = false;
89};
90
92 std::string asString() const;
93
94 int nIterations = 1; // Number of vertexing passes to perform
95 int vertPerRofThreshold = 0; // Maximum number of vertices per ROF to trigger second a round
97 std::vector<float> LayerZ = {16.333f + 1, 16.333f + 1, 16.333f + 1, 42.140f + 1, 42.140f + 1, 73.745f + 1, 73.745f + 1};
98 std::vector<float> LayerRadii = {2.33959f, 3.14076f, 3.91924f, 19.6213f, 24.5597f, 34.388f, 39.3329f};
99 int ZBins{1};
100 int PhiBins{128};
101 int deltaRof = 0;
102 float zCut = 0.002f;
103 float phiCut = 0.005f;
104 float pairCut = 0.04f;
105 float clusterCut = 0.8f;
106 float histPairCut = 0.04f;
107 float tanLambdaCut = 0.002f; // tanLambda = deltaZ/deltaR
108 float lowMultBeamDistCut = 0.1f; // XY cut for low-multiplicity pile up
109 int vertNsigmaCut = 6; // N sigma cut for vertex XY
110 float vertRadiusSigma = 0.33f; // sigma of vertex XY
111 float trackletSigma = 0.01f; // tracklet to vertex sigma
115 int phiSpan = -1;
116 int zSpan = -1;
117 bool SaveTimeBenchmarks = false;
118
119 bool useTruthSeeding = false; // overwrite found vertices with MC events
120 bool outputContLabels = false;
121
122 int nThreads = 1;
123 bool PrintMemory = false; // print allocator usage in epilog report
124 size_t MaxMemory = std::numeric_limits<size_t>::max();
125 bool DropTFUponFailure = false;
126};
127
129 std::string asString() const;
130
131 size_t tmpCUBBufferSize = 1e5; // In average in pp events there are required 4096 bytes
137 size_t maxNeighboursSize = 1e2;
139 size_t maxRoadPerRofSize = 1e3; // pp!
140 size_t maxLinesCapacity = 1e2;
142 size_t nMaxROFs = 1e3;
144 size_t nROFsPerChunk = 768; // pp defaults
146};
147
148namespace TrackingMode
149{
150enum Type : int8_t {
151 Unset = -1, // Special value to leave a default in case we want to override via Configurable Params
152 Sync = 0,
153 Async = 1,
155 Off = 3,
156};
157
158Type fromString(std::string_view str);
159std::string toString(Type mode);
160
161std::vector<TrackingParameters> getTrackingParameters(Type mode);
162std::vector<VertexingParameters> getVertexingParameters(Type mode);
163
164}; // namespace TrackingMode
165
166} // namespace o2::its
167
168#endif /* TRACKINGITSU_INCLUDE_CONFIGURATION_H_ */
GLenum mode
Definition glcorearb.h:266
std::vector< VertexingParameters > getVertexingParameters(Type mode)
Type fromString(std::string_view str)
std::string toString(Type mode)
std::vector< TrackingParameters > getTrackingParameters(Type mode)
std::string asString() const
std::string asString() const
bool AllowSharingFirstCluster
General parameters.
std::vector< float > LayerRadii
std::vector< float > SystErrorY2
std::vector< float > LayerZ
float CellDeltaTanLambdaSigma
Cell finding cuts.
std::vector< float > SystErrorZ2
float TrackletMinPt
Trackleting cuts.
std::vector< float > LayerResolution
int CellMinimumLevel() const noexcept
std::vector< float > LayerxX0
std::vector< float > MinPt
o2::base::PropagatorImpl< float >::MatCorrType CorrType
Fitter parameters.
int CellsPerRoad() const noexcept
int NeighboursPerRoad() const noexcept
int TrackletsPerRoad() const noexcept
bool UseTrackFollower
Cluster attachment.
std::string asString() const
std::vector< float > LayerZ
std::vector< float > LayerRadii
const std::string str