thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
Config
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
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 */
ThePEG::Qty< 1, 0, 0 >
ThePEG::Constants::zeta4
constexpr double zeta4
.
Definition:
Constants.h:75
ThePEG::Constants::zeta6
constexpr double zeta6
.
Definition:
Constants.h:81
ThePEG::Constants::MaxInt
constexpr long MaxInt
A really large integer.
Definition:
Constants.h:60
ThePEG::Constants::zeta3
constexpr double zeta3
.
Definition:
Constants.h:72
ThePEG::Constants::twopi
constexpr double twopi
Good old .
Definition:
Constants.h:57
ThePEG::Constants::HugeFloat
constexpr double HugeFloat
A really large floa.t.
Definition:
Constants.h:48
ThePEG::Constants::MaxDouble
constexpr double MaxDouble
The largest possible double.
Definition:
Constants.h:39
ThePEG::Constants::HugeDouble
constexpr double HugeDouble
A really large double.
Definition:
Constants.h:42
ThePEG::Constants::pi
constexpr double pi
Good old .
Definition:
Constants.h:54
ThePEG::Constants::MaxEnergy2
constexpr Energy2 MaxEnergy2
A really large squared energy.
Definition:
Constants.h:36
ThePEG::Constants::MaxFloat
constexpr double MaxFloat
The largest possible float.
Definition:
Constants.h:45
ThePEG::Constants::MaxRapidity
constexpr double MaxRapidity
A really large rapidity.
Definition:
Constants.h:51
ThePEG::Constants::MaxEnergy
constexpr Energy MaxEnergy
A really large energy.
Definition:
Constants.h:33
ThePEG::Constants::MaxLength
constexpr Length MaxLength
A really large length.
Definition:
Constants.h:30
ThePEG::Constants::epsilon
constexpr double epsilon
The smallest non-zero double.
Definition:
Constants.h:63
ThePEG::Constants::EulerGamma
constexpr double EulerGamma
The Euler gamma.
Definition:
Constants.h:66
ThePEG::Constants::zeta5
constexpr double zeta5
.
Definition:
Constants.h:78
ThePEG::Constants::zeta2
constexpr double zeta2
.
Definition:
Constants.h:69
ThePEG::Units
The Units namespace contains the declaration of a number of classes for variables with dimension.
Definition:
Unitsystem.h:35
ThePEG
This is the main namespace within which all identifiers in ThePEG are declared.
Definition:
FactoryBase.h:28
Generated on Thu Jun 20 2024 14:47:00 for ThePEG by
1.9.6