/usr/include/Rivet/Math/MathHeader.hh is in librivet-dev 1.8.3-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | #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();
/// A pre-defined value of \f$ \pi \f$.
const double PI = M_PI;
/// A pre-defined value of \f$ 2\pi \f$.
const double TWOPI = 2*M_PI;
/// A pre-defined value of \f$ \pi/2 \f$.
const double HALFPI = M_PI_2;
/// Enum for signs of numbers.
enum Sign { MINUS = -1, ZERO = 0, PLUS = 1 };
/// Enum for rapidity variable to be used in calculating \f$ R \f$, applying rapidity cuts, etc.
enum RapScheme { PSEUDORAPIDITY = 0, ETA = 0, RAPIDITY = 1, YRAP = 1 };
/// Enum for range of \f$ \phi \f$ to be mapped into
enum PhiMapping { MINUSPI_PLUSPI, ZERO_2PI, ZERO_PI };
}
#endif
|