Warning, file /include/Rivet/Math/MathConstants.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 #ifndef RIVET_Math_MathConstants
0002 #define RIVET_Math_MathConstants
0003
0004 #include "Rivet/Tools/Exceptions.hh"
0005 #include "Rivet/Tools/Utils.hh"
0006 #include <cmath>
0007
0008 namespace Rivet {
0009
0010
0011
0012
0013 constexpr double PI = M_PI;
0014
0015
0016 constexpr double TWOPI = 2*M_PI;
0017
0018
0019 constexpr double HALFPI = M_PI_2;
0020
0021
0022 constexpr double SQRT2 = M_SQRT2;
0023
0024
0025 constexpr double SQRTPI = 2 / M_2_SQRTPI;
0026
0027
0028
0029
0030
0031
0032
0033 constexpr double INFF = HUGE_VALF;
0034 constexpr double INF = HUGE_VAL;
0035 constexpr double INFL = HUGE_VALL;
0036
0037
0038
0039
0040
0041
0042
0043 enum Sign { MINUS = -1, ZERO = 0, PLUS = 1 };
0044
0045
0046 enum RapScheme { PSEUDORAPIDITY = 0, ETARAP = 0, RAPIDITY = 1, YRAP = 1 };
0047
0048
0049 enum PhiMapping { MINUSPI_PLUSPI, ZERO_2PI, ZERO_PI };
0050
0051 }
0052
0053 #endif