Project
Loading...
Searching...
No Matches
MathConstants.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_COMMON_MATH_CONSTANTS_
17
#define ALICEO2_COMMON_MATH_CONSTANTS_
18
19
namespace
o2
20
{
21
namespace
constants
22
{
23
namespace
math
24
{
25
constexpr
float
Almost0
= 0x1.0p-126f;
// smallest non-denormal float
26
constexpr
float
Epsilon
= 0x0.000002p0f;
// smallest float such that 1 != 1 + Epsilon
27
constexpr
float
Almost1
= 1.f - 1.0e-6f;
28
constexpr
float
VeryBig
= 1.f /
Almost0
;
29
30
constexpr
float
PI
= 3.14159274101257324e+00f;
31
constexpr
float
TwoPI
= 2.f *
PI
;
32
constexpr
float
PIHalf
= 0.5f *
PI
;
33
constexpr
float
PIThird
=
PI
/ 3.0f;
34
constexpr
float
PIQuarter
= 0.25f *
PI
;
35
constexpr
float
Rad2Deg
= 180.f /
PI
;
36
constexpr
float
Deg2Rad
=
PI
/ 180.f;
37
38
constexpr
int
NSectors
= 18;
39
constexpr
float
SectorSpanDeg
= 360. /
NSectors
;
40
constexpr
float
SectorSpanRad
=
SectorSpanDeg
*
Deg2Rad
;
41
42
// conversion from B(kGaus) to curvature for 1GeV pt
43
constexpr
float
B2C
= -0.299792458e-3;
44
}
// namespace math
45
}
// namespace constants
46
}
// namespace o2
47
#endif
o2::constants::math::NSectors
constexpr int NSectors
Definition
MathConstants.h:38
o2::constants::math::SectorSpanDeg
constexpr float SectorSpanDeg
Definition
MathConstants.h:39
o2::constants::math::Almost0
constexpr float Almost0
Definition
MathConstants.h:25
o2::constants::math::B2C
constexpr float B2C
Definition
MathConstants.h:43
o2::constants::math::Deg2Rad
constexpr float Deg2Rad
Definition
MathConstants.h:36
o2::constants::math::Epsilon
constexpr float Epsilon
Definition
MathConstants.h:26
o2::constants::math::TwoPI
constexpr float TwoPI
Definition
MathConstants.h:31
o2::constants::math::SectorSpanRad
constexpr float SectorSpanRad
Definition
MathConstants.h:40
o2::constants::math::PI
constexpr float PI
Definition
MathConstants.h:30
o2::constants::math::PIQuarter
constexpr float PIQuarter
Definition
MathConstants.h:34
o2::constants::math::PIHalf
constexpr float PIHalf
Definition
MathConstants.h:32
o2::constants::math::Rad2Deg
constexpr float Rad2Deg
Definition
MathConstants.h:35
o2::constants::math::VeryBig
constexpr float VeryBig
Definition
MathConstants.h:28
o2::constants::math::Almost1
constexpr float Almost1
Definition
MathConstants.h:27
o2::constants::math::PIThird
constexpr float PIThird
Definition
MathConstants.h:33
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
Common
Constants
include
CommonConstants
MathConstants.h
Generated on Tue Feb 25 2025 22:43:42 for Project by
1.9.8