ThePEG
1.8.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Config
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 */
Generated on Sat Jun 16 2012 16:51:03 for ThePEG by
1.8.1.1