MathHeader.hh
#ifndef RIVET_Math_MathHeader
#define RIVET_Math_MathHeader
#include "Rivet/Exceptions.hh"
#include <stdexcept>
#include <string>
#include <ostream>
#include <sstream>
#include <iostream>
#include <limits>
#include <cmath>
#include <map>
#include <vector>
#include <algorithm>
// Macro to help with overzealous compiler warnings
#ifdef UNUSED
#elif defined(__GNUC__)
# define UNUSED(x) UNUSED_ ## x __attribute__((unused))
#elif defined(__LCLINT__)
# define UNUSED(x) /*@unused@*/ x
#else
# define UNUSED(x) x
#endif
namespace Rivet {
using std::string;
using std::ostream;
using std::ostringstream;
using std::cout;
using std::endl;
using std::pair;
using std::vector;
using std::transform;
using std::min;
using std::max;
using std::abs;
using std::isnan;
using std::isinf;
const double MAXDOUBLE = std::numeric_limits<double>::max();
const double MAXINT = std::numeric_limits<int>::max();
const double PI = M_PI;
const double TWOPI = 2*M_PI;
const double HALFPI = M_PI_2;
enum Sign { MINUS = -1, ZERO = 0, PLUS = 1 };
enum RapScheme { PSEUDORAPIDITY = 0, ETA = 0, RAPIDITY = 1, YRAP = 1 };
enum PhiMapping { MINUSPI_PLUSPI, ZERO_2PI, ZERO_PI };
}
#endif
Rivet::Sign
Sign
Enum for signs of numbers.
Definition: MathHeader.hh:57
Rivet::PI
const double PI
A pre-defined value of .
Definition: MathHeader.hh:48
Rivet::HALFPI
const double HALFPI
A pre-defined value of .
Definition: MathHeader.hh:54
Rivet::PhiMapping
PhiMapping
Enum for range of to be mapped into.
Definition: MathHeader.hh:63
Rivet::TWOPI
const double TWOPI
A pre-defined value of .
Definition: MathHeader.hh:51
Rivet::RapScheme
RapScheme
Enum for rapidity variable to be used in calculating , applying rapidity cuts, etc.
Definition: MathHeader.hh:60