File indexing completed on 2026-08-06 09:38:19
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef ThePEG_Constants_H
0010 #define ThePEG_Constants_H
0011
0012
0013
0014
0015 #include "Unitsystem.h"
0016 #include <cmath>
0017 #include <cfloat>
0018
0019 namespace ThePEG {
0020
0021
0022
0023
0024
0025 namespace Constants {
0026
0027 using namespace ThePEG::Units;
0028
0029
0030 constexpr Length MaxLength = 1.0e23_mm;
0031
0032
0033 constexpr Energy MaxEnergy = 1.0e6_GeV;
0034
0035
0036 constexpr Energy2 MaxEnergy2 = MaxEnergy * MaxEnergy;
0037
0038
0039 constexpr double MaxDouble = DBL_MAX;
0040
0041
0042 constexpr double HugeDouble = DBL_MAX * 1.0e-4;
0043
0044
0045 constexpr double MaxFloat = FLT_MAX;
0046
0047
0048 constexpr double HugeFloat = FLT_MAX * 0.01;
0049
0050
0051 constexpr double MaxRapidity = 100.0;
0052
0053
0054 constexpr double pi = M_PI;
0055
0056
0057 constexpr double twopi = 2.0 * pi;
0058
0059
0060 constexpr long MaxInt = 1000000000L;
0061
0062
0063 constexpr double epsilon = DBL_EPSILON;
0064
0065
0066 constexpr double EulerGamma = 0.5772156649015329;
0067
0068
0069 constexpr double zeta2 = pi*pi/6.;
0070
0071
0072 constexpr double zeta3 = 1.2020569031595943;
0073
0074
0075 constexpr double zeta4 = 0.4*zeta2*zeta2;
0076
0077
0078 constexpr double zeta5 = 1.0369277551433699;
0079
0080
0081 constexpr double zeta6 = 4.*zeta2*zeta4/7.;
0082 }
0083
0084 }
0085
0086 #endif