ThePEG  1.8.0
Constants.h
1 // -*- C++ -*-
2 //
3 // Constants.h is a part of ThePEG - Toolkit for HEP Event Generation
4 // Copyright (C) 1999-2011 Leif Lonnblad
5 //
6 // ThePEG is licenced under version 2 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 const Length MaxLength = 1.0e20 * meter;
31 
33 const Energy MaxEnergy = 1.0e6 * GeV;
34 
36 const Energy2 MaxEnergy2 = MaxEnergy * MaxEnergy;
37 
39 const double MaxDouble = DBL_MAX;
40 
42 const double HugeDouble = DBL_MAX * 1.0e-4;
43 
45 const double MaxFloat = FLT_MAX;
46 
48 const double HugeFloat = FLT_MAX * 0.01;
49 
51 const double MaxRapidity = 100.0;
52 
54 const double pi = M_PI;
55 
57 const double twopi = 2.0 * pi;
58 
60 const long MaxInt = 1000000000L;
61 
63 const double epsilon = DBL_EPSILON;
64 
66 const double EulerGamma = 0.5772156649015329;
67 }
68 
69 }
70 
71 #endif /* ThePEG_Constants_H */
This is the main namespace within which all identifiers in ThePEG are declared.
Definition: FactoryBase.h:28
const double MaxRapidity
A really large rapidity.
Definition: Constants.h:51
const long MaxInt
A really large integer.
Definition: Constants.h:60
const Length MaxLength
A really large length.
Definition: Constants.h:30
QTY< 0, 1, 0 >::Type Energy
Energy.
Definition: Unitsystem.h:34
QTY< 1, 0, 0 >::Type Length
Length.
Definition: Unitsystem.h:40
const double twopi
Good old .
Definition: Constants.h:57
const double HugeFloat
A really large floa.t.
Definition: Constants.h:48
const double pi
Good old .
Definition: Constants.h:54
const double HugeDouble
A really large double.
Definition: Constants.h:42
const double MaxDouble
The largest possible double.
Definition: Constants.h:39
const double MaxFloat
The largest possible float.
Definition: Constants.h:45
const Energy2 MaxEnergy2
A really large squared energy.
Definition: Constants.h:36
const double epsilon
The smallest non-zero double.
Definition: Constants.h:63
The Units namespace contains the declaration of a number of classes for variables with dimension...
Definition: Unitsystem.h:31
const double EulerGamma
The Euler gamma.
Definition: Constants.h:66
const Energy MaxEnergy
A really large energy.
Definition: Constants.h:33