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#include <cstdint>
20#ifndef GPUCA_GPUCODE_DEVICE
21#include <limits>
22#include <string>
23#include <vector>
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 std::vector<uint32_t> AddTimeError = {0, 0, 0, 0, 0, 0, 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};
49 bool UseDiamond = false;
50 float Diamond[3] = {0.f, 0.f, 0.f};
51 float DiamondCov[6] = {25.e-6f, 0.f, 0.f, 25.e-6f, 0.f, 36.f};
52
57 float NSigmaCut = 5;
58 float PVres = 1.e-2f;
60 float TrackletMinPt = 0.3f;
66 float MaxChi2NDF = 30.f;
67 int ReseedIfShorter = 6; // reseed for the final fit track with the length shorter than this
68 std::vector<float> MinPt = {0.f, 0.f, 0.f, 0.f};
69 uint16_t StartLayerMask = 0x7F;
70 bool RepeatRefitOut = false; // repeat outward refit using inward refit as a seed
71 bool ShiftRefToCluster = true; // TrackFit: after update shift the linearization reference to cluster
73 bool SaveTimeBenchmarks = false;
74 bool DoUPCIteration = false;
76
78
79 bool PrintMemory = false; // print allocator usage in epilog report
80 size_t MaxMemory = std::numeric_limits<size_t>::max();
81 bool DropTFUponFailure = false;
82};
83
85 std::string asString() const;
86
87 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};
88 std::vector<float> LayerRadii = {2.33959f, 3.14076f, 3.91924f, 19.6213f, 24.5597f, 34.388f, 39.3329f};
89 int vertPerRofThreshold = 0; // Maximum number of vertices per ROF to trigger second a round
90 int ZBins = 1;
91 int PhiBins = 128;
92 float zCut = -1.f;
93 float phiCut = -1.f;
94 float pairCut = -1.f;
95 float clusterCut = -1.f;
96 float coarseZWindow = -1.f;
97 float seedDedupZCut = -1.f;
98 float refitDedupZCut = -1.f;
99 float duplicateZCut = -1.f;
100 float finalSelectionZCut = -1.f;
102 float tanLambdaCut = -1.f;
103 float NSigmaCut = -1;
110 int phiSpan = -1;
111 int zSpan = -1;
112 bool SaveTimeBenchmarks = false;
113
114 bool useTruthSeeding = false; // overwrite found vertices with MC events
115
116 int nThreads = 1;
117 bool PrintMemory = false; // print allocator usage in epilog report
118 size_t MaxMemory = std::numeric_limits<size_t>::max();
119 bool DropTFUponFailure = false;
120};
121
122namespace TrackingMode
123{
124enum Type : int8_t {
125 Unset = -1, // Special value to leave a default in case we want to override via Configurable Params
126 Sync = 0,
127 Async = 1,
129 Off = 3,
130};
131
132Type fromString(std::string_view str);
133std::string toString(Type mode);
134
135std::vector<TrackingParameters> getTrackingParameters(Type mode);
136std::vector<VertexingParameters> getVertexingParameters(Type mode);
137
138}; // namespace TrackingMode
139
140} // namespace o2::its
141
142#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)
constexpr int ClustersPerCell
Definition Constants.h:34
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
std::vector< uint32_t > AddTimeError
std::string asString() const
std::vector< float > LayerZ
std::vector< float > LayerRadii
const std::string str