Project
Loading...
Searching...
No Matches
Constants.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_CONSTANTS_H_
17#define TRACKINGITSU_INCLUDE_CONSTANTS_H_
18
19#include <array>
20#include <utility>
21
23{
24
25constexpr float KB = 1024.f;
26constexpr float MB = KB * KB;
27constexpr float GB = MB * KB;
28constexpr bool DoTimeBenchmarks = true;
29constexpr bool SaveTimeBenchmarks = false;
30constexpr float Tolerance = 1e-12; // numerical tolerance
31constexpr int ClustersPerCell = 3; // number of clusters for a cell
32constexpr int UnusedIndex = -1; // global unused flag
33constexpr float UnsetValue = -999.f; // global unset value
34constexpr float Radl = 9.36f; // Radiation length of Si [cm]
35constexpr float Rho = 2.33f; // Density of Si [g/cm^3]
36constexpr int MaxIter = 4; // Max. supported iterations
37constexpr int MaxSeedingPasses = 2; // seeding + UPC passes optionally appended after the tracking iterations
38constexpr int MaxSelectedTrackletsPerCluster = 100; // vertexer: max lines per cluster
39constexpr int NumberOfConcurrentSeeds = 16; // default split per worker for the final track fit/extraploation step
40constexpr int MinNumberOfConcurrentSeeds = (1 << 8); // minimum chunk size for a worker for the final track fit/extraploation step
41constexpr int MaxNumberOfConcurrentSeeds = (1 << 12); // maximum chunk size for a worker for the final track fit/extraploation step
42constexpr float MaxTrackSeedQ2Pt = 1.e3f; // maximum q/pt for track seeds
43
44constexpr int MaxBootstrapPasses = 5; // beam bootstrap: cap on the re-trackleting passes
45constexpr float BeamConvergence2 = 5.e-3f * 5.e-3f; // beam bootstrap: stop below a (50 um)^2 beam shift
46constexpr float VtxMinGoodThreshold = 2.f; // seeding emit: floor of the k*sqrt(ROF load) debris threshold (bounds included)
47constexpr float VtxOverpopulatedRofTrimFraction = 0.02f; // overpopulated-ROF pruning: busiest fraction of ROFs left out of the per-ROF mean
48
49namespace helpers
50{
51
52// initialize a std::array at compile time fully with T
53template <typename T, std::size_t N, T Value>
54constexpr std::array<T, N> initArray()
55{
56 return []<std::size_t... Is>(std::index_sequence<Is...>) { return std::array<T, N>{(static_cast<void>(Is), Value)...}; }(std::make_index_sequence<N>{});
57}
58
59} // namespace helpers
60} // namespace o2::its::constants
61
62#endif /* TRACKINGITSU_INCLUDE_CONSTANTS_H_ */
o2::monitoring::tags::Value Value
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char e
constexpr std::array< T, N > initArray()
Definition Constants.h:54
constexpr int UnusedIndex
Definition Constants.h:32
constexpr int MinNumberOfConcurrentSeeds
Definition Constants.h:40
constexpr float VtxOverpopulatedRofTrimFraction
Definition Constants.h:47
constexpr int MaxBootstrapPasses
Definition Constants.h:44
constexpr int MaxNumberOfConcurrentSeeds
Definition Constants.h:41
constexpr int MaxSelectedTrackletsPerCluster
Definition Constants.h:38
constexpr float Radl
Definition Constants.h:34
constexpr int ClustersPerCell
Definition Constants.h:31
constexpr float Tolerance
Definition Constants.h:30
constexpr float GB
Definition Constants.h:27
constexpr float Rho
Definition Constants.h:35
constexpr float UnsetValue
Definition Constants.h:33
constexpr float VtxMinGoodThreshold
Definition Constants.h:46
constexpr float KB
Definition Constants.h:25
constexpr float MB
Definition Constants.h:26
constexpr bool DoTimeBenchmarks
Definition Constants.h:28
constexpr int MaxSeedingPasses
Definition Constants.h:37
constexpr int MaxIter
Definition Constants.h:36
constexpr float BeamConvergence2
Definition Constants.h:45
constexpr bool SaveTimeBenchmarks
Definition Constants.h:29
constexpr float MaxTrackSeedQ2Pt
Definition Constants.h:42
constexpr int NumberOfConcurrentSeeds
Definition Constants.h:39