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.
11
15
16#ifndef ALICEO2_MFT_CONSTANTS_H_
17#define ALICEO2_MFT_CONSTANTS_H_
18
19#include <Rtypes.h>
20
21namespace o2
22{
23namespace mft
24{
25namespace constants
26{
27constexpr Int_t DisksNumber{5};
28constexpr Int_t LayersNumber{2 * DisksNumber};
29constexpr Int_t HalvesNumber{2};
30
32constexpr Double_t LayerZPosition[] = {-45.3, -46.7, -48.6, -50.0, -52.4, -53.8, -67.7, -69.1, -76.1, -77.5};
33
35constexpr Double_t DiskThicknessInX0[DisksNumber] = {0.008, 0.008, 0.008, 0.008, 0.008};
36
37inline const Double_t diskThicknessInX0(Int_t id) { return (id >= 0 && id < DisksNumber) ? DiskThicknessInX0[id] : 0.; }
38inline const Double_t layerZPosition(Int_t id)
39{
40 return (id >= 0 && id < LayersNumber) ? LayerZPosition[id] + (-(id % 2) * 2 - 1) * 0.0025 : 0.;
41}
42} // namespace constants
43} // namespace mft
44} // namespace o2
45
46#endif
GLuint id
Definition glcorearb.h:650
constexpr Int_t HalvesNumber
Definition Constants.h:29
constexpr Int_t LayersNumber
Definition Constants.h:28
const Double_t diskThicknessInX0(Int_t id)
Definition Constants.h:37
constexpr Int_t DisksNumber
Definition Constants.h:27
const Double_t layerZPosition(Int_t id)
Definition Constants.h:38
constexpr Double_t LayerZPosition[]
layer Z position to the middle of the CMOS sensor
Definition Constants.h:32
constexpr Double_t DiskThicknessInX0[DisksNumber]
disk thickness in X0
Definition Constants.h:35
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...