thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
Constants.h
1// -*- C++ -*-
2//
3// Constants.h is a part of ThePEG - Toolkit for HEP Event Generation
4// Copyright (C) 1999-2019 Leif Lonnblad
5//
6// ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8//
9#ifndef ThePEG_Constants_H
10#define ThePEG_Constants_H
11
12// This file defines a number of useful constants, placed in the
13// namespace <!id>ThePEG::Constants<!!id>.
14
15#include "Unitsystem.h"
16#include <cmath>
17#include <cfloat>
18
19namespace ThePEG {
20
25namespace Constants {
26
27using namespace ThePEG::Units;
28
30constexpr Length MaxLength = 1.0e23_mm;
31
33constexpr Energy MaxEnergy = 1.0e6_GeV;
34
37
39constexpr double MaxDouble = DBL_MAX;
40
42constexpr double HugeDouble = DBL_MAX * 1.0e-4;
43
45constexpr double MaxFloat = FLT_MAX;
46
48constexpr double HugeFloat = FLT_MAX * 0.01;
49
51constexpr double MaxRapidity = 100.0;
52
54constexpr double pi = M_PI;
55
57constexpr double twopi = 2.0 * pi;
58
60constexpr long MaxInt = 1000000000L;
61
63constexpr double epsilon = DBL_EPSILON;
64
66constexpr double EulerGamma = 0.5772156649015329;
67
69constexpr double zeta2 = pi*pi/6.;
70
72constexpr double zeta3 = 1.2020569031595943;
73
75constexpr double zeta4 = 0.4*zeta2*zeta2;
76
78constexpr double zeta5 = 1.0369277551433699;
79
81constexpr double zeta6 = 4.*zeta2*zeta4/7.;
82}
83
84}
85
86#endif /* ThePEG_Constants_H */
constexpr double zeta4
.
Definition: Constants.h:75
constexpr double zeta6
.
Definition: Constants.h:81
constexpr long MaxInt
A really large integer.
Definition: Constants.h:60
constexpr double zeta3
.
Definition: Constants.h:72
constexpr double twopi
Good old .
Definition: Constants.h:57
constexpr double HugeFloat
A really large floa.t.
Definition: Constants.h:48
constexpr double MaxDouble
The largest possible double.
Definition: Constants.h:39
constexpr double HugeDouble
A really large double.
Definition: Constants.h:42
constexpr double pi
Good old .
Definition: Constants.h:54
constexpr Energy2 MaxEnergy2
A really large squared energy.
Definition: Constants.h:36
constexpr double MaxFloat
The largest possible float.
Definition: Constants.h:45
constexpr double MaxRapidity
A really large rapidity.
Definition: Constants.h:51
constexpr Energy MaxEnergy
A really large energy.
Definition: Constants.h:33
constexpr Length MaxLength
A really large length.
Definition: Constants.h:30
constexpr double epsilon
The smallest non-zero double.
Definition: Constants.h:63
constexpr double EulerGamma
The Euler gamma.
Definition: Constants.h:66
constexpr double zeta5
.
Definition: Constants.h:78
constexpr double zeta2
.
Definition: Constants.h:69
The Units namespace contains the declaration of a number of classes for variables with dimension.
Definition: Unitsystem.h:35
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28