thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.1.5
Constants.h
1 // -*- C++ -*-
2 //
3 // Constants.h is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 1999-2017 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 
19 namespace ThePEG {
20 
25 namespace Constants {
26 
27 using namespace ThePEG::Units;
28 
30 constexpr Length MaxLength = 1.0e23_mm;
31 
33 constexpr Energy MaxEnergy = 1.0e6_GeV;
34 
36 constexpr Energy2 MaxEnergy2 = MaxEnergy * MaxEnergy;
37 
39 constexpr double MaxDouble = DBL_MAX;
40 
42 constexpr double HugeDouble = DBL_MAX * 1.0e-4;
43 
45 constexpr double MaxFloat = FLT_MAX;
46 
48 constexpr double HugeFloat = FLT_MAX * 0.01;
49 
51 constexpr double MaxRapidity = 100.0;
52 
54 constexpr double pi = M_PI;
55 
57 constexpr double twopi = 2.0 * pi;
58 
60 constexpr long MaxInt = 1000000000L;
61 
63 constexpr double epsilon = DBL_EPSILON;
64 
66 constexpr double EulerGamma = 0.5772156649015329;
67 
69 constexpr double zeta2 = pi*pi/6.;
70 
72 constexpr double zeta3 = 1.2020569031595943;
73 
75 constexpr double zeta4 = 0.4*zeta2*zeta2;
76 
78 constexpr double zeta5 = 1.0369277551433699;
79 
81 constexpr double zeta6 = 4.*zeta2*zeta4/7.;
82 }
83 
84 }
85 
86 #endif /* ThePEG_Constants_H */
constexpr double zeta4
.
Definition: Constants.h:75
constexpr double HugeFloat
A really large floa.t.
Definition: Constants.h:48
constexpr Energy MaxEnergy
A really large energy.
Definition: Constants.h:33
constexpr double zeta5
.
Definition: Constants.h:78
constexpr double pi
Good old .
Definition: Constants.h:54
constexpr double zeta6
.
Definition: Constants.h:81
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
constexpr double zeta2
.
Definition: Constants.h:69
constexpr double epsilon
The smallest non-zero double.
Definition: Constants.h:63
constexpr Energy2 MaxEnergy2
A really large squared energy.
Definition: Constants.h:36
constexpr double MaxRapidity
A really large rapidity.
Definition: Constants.h:51
constexpr double HugeDouble
A really large double.
Definition: Constants.h:42
constexpr double MaxDouble
The largest possible double.
Definition: Constants.h:39
constexpr double twopi
Good old .
Definition: Constants.h:57
constexpr long MaxInt
A really large integer.
Definition: Constants.h:60
constexpr double zeta3
.
Definition: Constants.h:72
constexpr Length MaxLength
A really large length.
Definition: Constants.h:30
constexpr double MaxFloat
The largest possible float.
Definition: Constants.h:45
The Units namespace contains the declaration of a number of classes for variables with dimension...
Definition: Unitsystem.h:35
constexpr double EulerGamma
The Euler gamma.
Definition: Constants.h:66