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 O2_MFT_CONSTANTS_H_
17#define O2_MFT_CONSTANTS_H_
18
19#include <climits>
20#include <vector>
21#include <array>
22
23#include <Rtypes.h>
24
26
27namespace o2
28{
29namespace mft
30{
31
32namespace constants
33{
34
35namespace mft
36{
37constexpr Int_t LayersNumber{10};
38constexpr Int_t DisksNumber{5};
39constexpr Int_t TrackletsPerRoad{LayersNumber - 1};
40constexpr Int_t CellsPerRoad{LayersNumber - 2};
41constexpr Int_t ClustersPerCell{2};
42constexpr Int_t UnusedIndex{-1};
43constexpr Float_t Resolution{0.0005f};
44constexpr std::array<Float_t, LayersNumber> LayerZCoordinate()
45{
46 return std::array<Float_t, LayersNumber>{-45.3, -46.7, -48.6, -50.0, -52.4, -53.8, -67.7, -69.1, -76.1, -77.5};
47}
48constexpr std::array<Float_t, LayersNumber> InverseLayerZCoordinate()
49{
50 return std::array<Float_t, LayersNumber>{-1. / 45.3, -1. / 46.7, -1. / 48.6, -1. / 50.0, -1. / 52.4, -1. / 53.8, -1. / 67.7, -1. / 69.1, -1. / 76.1, -1. / 77.5};
51}
52constexpr Int_t MaxPointsInRoad{100};
53constexpr Int_t MaxCellsInRoad{100};
54} // namespace mft
55
56namespace index_table
57{
58constexpr std::array<Float_t, o2::mft::constants::mft::LayersNumber> RMin{2.1, 2.1, 2.1, 2.1, 2.1, 2.1, 3.1, 3.1, 3.5, 3.5}; // [cm]
59constexpr std::array<Float_t, o2::mft::constants::mft::LayersNumber> RMax{12.5, 12.5, 12.5, 12.5, 14.0, 14.0, 17.0, 17.0, 17.5, 17.5};
60
61constexpr Float_t PhiMin{0.};
63
64constexpr Int_t MaxRPhiBins{120 * 30 + 1};
65} // namespace index_table
66
67} // namespace constants
68} // namespace mft
69} // namespace o2
70
71#endif /* O2_MFT_CONSTANTS_H_ */
useful math constants
constexpr float TwoPI
constexpr std::array< Float_t, o2::mft::constants::mft::LayersNumber > RMin
Definition Constants.h:58
constexpr std::array< Float_t, o2::mft::constants::mft::LayersNumber > RMax
Definition Constants.h:59
constexpr Int_t ClustersPerCell
Definition Constants.h:41
constexpr std::array< Float_t, LayersNumber > InverseLayerZCoordinate()
Definition Constants.h:48
constexpr Int_t TrackletsPerRoad
Definition Constants.h:39
constexpr Int_t LayersNumber
Definition Constants.h:37
constexpr Int_t CellsPerRoad
Definition Constants.h:40
constexpr std::array< Float_t, LayersNumber > LayerZCoordinate()
Definition Constants.h:44
constexpr Float_t Resolution
Definition Constants.h:43
constexpr Int_t UnusedIndex
Definition Constants.h:42
constexpr Int_t MaxCellsInRoad
Definition Constants.h:53
constexpr Int_t MaxPointsInRoad
Definition Constants.h:52
constexpr Int_t DisksNumber
Definition Constants.h:38
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...