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