Hammer  1.0.0
Helicity Amplitude Module for Matrix Element Reweighting
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Constants.hh
Go to the documentation of this file.
1 #ifndef HAMMER_MATH_CONSTANTS
2 #define HAMMER_MATH_CONSTANTS
3 
4 ///
5 /// @file Constants.hh
6 /// @brief Various numerical constants
7 ///
8 
9 //**** This file is a part of the HAMMER library
10 //**** Copyright (C) 2016 - 2020 The HAMMER Collaboration
11 //**** HAMMER is licensed under version 3 of the GPL; see COPYING for details
12 //**** Please note the MCnet academic guidelines; see GUIDELINES for details
13 
14 // -*- C++ -*-
15 #include <boost/math/constants/constants.hpp>
16 
17 #include "Hammer/Math/Units.hh"
18 
19 namespace Hammer {
20 
21  static constexpr double pi = boost::math::constants::pi<double>();
22  static constexpr double twoPi = boost::math::constants::two_pi<double>();
23  static constexpr double halfPi = boost::math::constants::half_pi<double>();
24  static constexpr double pi2 = boost::math::constants::pi_sqr<double>();
25  static constexpr double pi3 = boost::math::constants::pi_cubed<double>();
26  static constexpr double sqrt2 = boost::math::constants::root_two<double>();
27  static constexpr double sqrt3 = boost::math::constants::root_three<double>();
28 
29  static constexpr double GFermi = 1.16638e-5 / GeV2;
30  static constexpr double TwoSqTwoGFermi = 2. * sqrt2 * GFermi;
31  static constexpr double FPion = 93 * MeV;
32 
33 } // namespace Hammer
34 
35 #endif
static constexpr double MeV
Definition: Units.hh:23
static constexpr double pi2
Definition: Constants.hh:24
static constexpr double GFermi
Definition: Constants.hh:29
static constexpr double FPion
Definition: Constants.hh:31
static constexpr double pi3
Definition: Constants.hh:25
static constexpr double sqrt2
Definition: Constants.hh:26
Unit conversion factors.
static constexpr double GeV2
Definition: Units.hh:26
static constexpr double twoPi
Definition: Constants.hh:22
static constexpr double halfPi
Definition: Constants.hh:23
static constexpr double TwoSqTwoGFermi
Definition: Constants.hh:30
static constexpr double sqrt3
Definition: Constants.hh:27
static constexpr double pi
Definition: Constants.hh:21