12#if (defined(_MSC_VER) && (_MSC_VER <= 1800))
13#define INFINITY (DBL_MAX + DBL_MAX)
14#define NAN (INFINITY - INFINITY)
25static constexpr double N_A = 6.02214179e23;
29static constexpr double h = 6.62606896e-34;
32static constexpr double h_bar =
h / (2 * M_PI);
35static constexpr double g = 9.80665;
51static constexpr double meV = 1.602176487e-22;
A namespace containing physical constants that are required by algorithms and unit routines.
static constexpr double MuonGyromagneticRatio
Muon gyromagnetic ratio in MHz/G Taken from CalMuonDetectorPhases and DynamicKuboToyabe on 02/02/2016...
static constexpr double BoltzmannConstant
Boltzmann Constant in meV/K Taken from http://physics.nist.gov/cuu/Constants on 10/07/2012.
static constexpr double meVtoFrequency
1 meV in frequency (GHz).
static constexpr double StandardAtmosphere
Standard atmospheric pressure in kPa.
static constexpr double E_mev_toNeutronWavenumberSq
Transformation coefficient to transform neutron energy into neutron wavevector: K-neutron[m^-10] = sq...
static constexpr double NeutronMassAMU
Mass of the neutron in AMU.
static constexpr double NeutronMass
Mass of the neutron in kg.
static constexpr double h
Planck constant in J*s.
static constexpr double meVtoKelvin
1 meV in Kelvin.
static constexpr double meVtoWavenumber
1 meV in wavenumber (cm-1).
static constexpr double N_A
Avagodro constant in mol-1.
static constexpr double MuonLifetime
Muon lifetime.
static constexpr double AtomicMassUnit
AMU in kg.
static constexpr double meV
1 meV in Joules.
static constexpr double h_bar
Planck constant in J*s, divided by 2 PI.
static constexpr double g
Standard acceleration due to gravity.
Helper class which provides the Collimation Length for SANS instruments.