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 <climits>
22#include <vector>
23#include <cmath>
24#endif
25
28
29namespace o2
30{
31namespace its
32{
33
34enum class TrackingMode {
35 Sync,
36 Async,
37 Cosmics,
38 Unset, // Special value to leave a default in case we want to override via Configurable Params
39};
40
41std::string asString(TrackingMode mode);
42std::ostream& operator<<(std::ostream& os, TrackingMode v);
43
44template <typename Param>
45class Configuration : public Param
46{
47 public:
49 {
50 static Configuration<Param> instance;
51 return instance;
52 }
55
56 private:
57 Configuration() = default;
58};
59
62
63 int CellMinimumLevel();
64 int CellsPerRoad() const { return NLayers - 2; }
65 int TrackletsPerRoad() const { return NLayers - 1; }
66 std::string asString() const;
67
68 int NLayers = 7;
69 int DeltaROF = 0;
70 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};
71 std::vector<float> LayerRadii = {2.33959f, 3.14076f, 3.91924f, 19.6213f, 24.5597f, 34.388f, 39.3329f};
72 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};
73 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};
74 std::vector<float> SystErrorY2 = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f};
75 std::vector<float> SystErrorZ2 = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f};
76 int ZBins{256};
77 int PhiBins{128};
79 bool UseDiamond = false;
80 float Diamond[3] = {0.f, 0.f, 0.f};
81
85 float NSigmaCut = 5;
86 float PVres = 1.e-2f;
88 float TrackletMinPt = 0.3f;
95 unsigned long MaxMemory = 12000000000UL;
97 float MaxChi2NDF = 30.f;
98 std::vector<float> MinPt = {0.f, 0.f, 0.f, 0.f};
99 unsigned char StartLayerMask = 0x7F;
100 bool FindShortTracks = false;
102 bool SaveTimeBenchmarks = false;
103 bool DoUPCIteration = false;
105 bool DropTFUponFailure = false;
107 bool UseTrackFollower = false;
113};
114
119
121 int nIterations = 1; // Number of vertexing passes to perform
122 int vertPerRofThreshold = 0; // Maximum number of vertices per ROF to trigger second a round
124 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};
125 std::vector<float> LayerRadii = {2.33959f, 3.14076f, 3.91924f, 19.6213f, 24.5597f, 34.388f, 39.3329f};
126 int ZBins{1};
127 int PhiBins{128};
128 int deltaRof = 0;
129 float zCut = 0.002f;
130 float phiCut = 0.005f;
131 float pairCut = 0.04f;
132 float clusterCut = 0.8f;
133 float histPairCut = 0.04f;
134 float tanLambdaCut = 0.002f; // tanLambda = deltaZ/deltaR
135 float lowMultBeamDistCut = 0.1f; // XY cut for low-multiplicity pile up
136 int vertNsigmaCut = 6; // N sigma cut for vertex XY
137 float vertRadiusSigma = 0.33f; // sigma of vertex XY
138 float trackletSigma = 0.01f; // tracklet to vertex sigma
142 int phiSpan = -1;
143 int zSpan = -1;
144
145 int nThreads = 1;
146};
147
150
151 size_t tmpCUBBufferSize = 1e5; // In average in pp events there are required 4096 bytes
157 size_t maxNeighboursSize = 1e2;
159 size_t maxRoadPerRofSize = 1e3; // pp!
160 size_t maxLinesCapacity = 1e2;
162 size_t nMaxROFs = 1e3;
164 size_t nROFsPerChunk = 768; // pp defaults
166};
167
168} // namespace its
169} // namespace o2
170
171#endif /* TRACKINGITSU_INCLUDE_CONFIGURATION_H_ */
const Configuration< Param > & operator=(const Configuration< Param > &)=delete
static Configuration< Param > & getInstance()
Configuration(const Configuration< Param > &)=delete
GLenum mode
Definition glcorearb.h:266
const GLdouble * v
Definition glcorearb.h:832
constexpr int ClustersPerCell
Definition Constants.h:51
std::string asString(TrackingMode mode)
std::ostream & operator<<(std::ostream &os, Detector &source)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
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
std::vector< float > LayerxX0
TrackingParameters & operator=(const TrackingParameters &t)=default
int ClusterSharing
General parameters.
std::vector< float > MinPt
o2::base::PropagatorImpl< float >::MatCorrType CorrType
Fitter parameters.
bool UseTrackFollower
Cluster attachment.
std::string asString() const
std::vector< float > LayerZ
std::vector< float > LayerRadii