rivet is hosted by Hepforge, IPPP Durham
Rivet  2.7.0
MathHeader.hh
1 #ifndef RIVET_Math_MathHeader
2 #define RIVET_Math_MathHeader
3 
4 #include "Rivet/Tools/Exceptions.hh"
5 #include "Rivet/Tools/Utils.hh"
6 
7 namespace Rivet {
8 
9 
12  static const double MAXDOUBLE = DBL_MAX; // was std::numeric_limits<double>::max(); -- warns in GCC5
13  static const double MAXINT = INT_MAX; // was std::numeric_limits<int>::max(); -- warns in GCC5
14 
16  static const double PI = M_PI;
17 
19  static const double TWOPI = 2*M_PI;
20 
22  static const double HALFPI = M_PI_2;
23 
25  enum Sign { MINUS = -1, ZERO = 0, PLUS = 1 };
26 
28  enum RapScheme { PSEUDORAPIDITY = 0, ETARAP = 0, RAPIDITY = 1, YRAP = 1 };
29 
31  enum PhiMapping { MINUSPI_PLUSPI, ZERO_2PI, ZERO_PI };
32 
33 }
34 
35 #endif
Definition: ALICE_2010_I880049.cc:13
Sign
Enum for signs of numbers.
Definition: MathHeader.hh:25
static const double PI
A pre-defined value of .
Definition: MathHeader.hh:16
static const double HALFPI
A pre-defined value of .
Definition: MathHeader.hh:22
PhiMapping
Enum for range of to be mapped into.
Definition: MathHeader.hh:31
static const double MAXDOUBLE
Definition: MathHeader.hh:12
static const double TWOPI
A pre-defined value of .
Definition: MathHeader.hh:19
RapScheme
Enum for rapidity variable to be used in calculating , applying rapidity cuts, etc.
Definition: MathHeader.hh:28