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
21
namespace
o2
22
{
23
namespace
mft
24
{
25
namespace
constants
26
{
27
constexpr
Int_t
DisksNumber
{5};
28
constexpr
Int_t
LayersNumber
{2 *
DisksNumber
};
29
constexpr
Int_t
HalvesNumber
{2};
30
32
constexpr
Double_t
LayerZPosition
[] = {-45.3, -46.7, -48.6, -50.0, -52.4, -53.8, -67.7, -69.1, -76.1, -77.5};
33
35
constexpr
Double_t
DiskThicknessInX0
[
DisksNumber
] = {0.008, 0.008, 0.008, 0.008, 0.008};
36
37
inline
const
Double_t
diskThicknessInX0
(Int_t
id
) {
return
(
id
>= 0 &&
id
<
DisksNumber
) ?
DiskThicknessInX0
[
id
] : 0.; }
38
inline
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
id
GLuint id
Definition
glcorearb.h:650
o2::mft::constants::HalvesNumber
constexpr Int_t HalvesNumber
Definition
Constants.h:29
o2::mft::constants::LayersNumber
constexpr Int_t LayersNumber
Definition
Constants.h:28
o2::mft::constants::diskThicknessInX0
const Double_t diskThicknessInX0(Int_t id)
Definition
Constants.h:37
o2::mft::constants::DisksNumber
constexpr Int_t DisksNumber
Definition
Constants.h:27
o2::mft::constants::layerZPosition
const Double_t layerZPosition(Int_t id)
Definition
Constants.h:38
o2::mft::constants::LayerZPosition
constexpr Double_t LayerZPosition[]
layer Z position to the middle of the CMOS sensor
Definition
Constants.h:32
o2::mft::constants::DiskThicknessInX0
constexpr Double_t DiskThicknessInX0[DisksNumber]
disk thickness in X0
Definition
Constants.h:35
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
Detectors
ITSMFT
MFT
base
include
MFTBase
Constants.h
Generated on Tue Feb 25 2025 23:16:11 for Project by
1.9.8