CMS 3D CMS Logo

Namespaces | Functions | Variables
GeantUnits.h File Reference
#include <cmath>

Go to the source code of this file.

Namespaces

 geant_units
 
 geant_units::operators
 

Functions

template<class NumType >
constexpr NumType geant_units::operators::convertCmToMm (NumType centimeters)
 
template<class NumType >
constexpr long double geant_units::operators::convertDegToRad (NumType degrees)
 
template<class NumType >
constexpr NumType geant_units::operators::convertMm3ToM3 (NumType mm3)
 
template<class NumType >
constexpr NumType geant_units::operators::convertMmToCm (NumType millimeters)
 
template<class NumType >
constexpr NumType geant_units::operators::convertRadToDeg (NumType radians)
 
template<class NumType >
constexpr NumType geant_units::operators::convertUnitsTo (long double desiredUnits, NumType val)
 
constexpr long double geant_units::joule (6.24150e+12)
 
constexpr long double geant_units::nanoseconds (1.)
 
constexpr long double geant_units::operators::operator""_cm (long double length)
 
constexpr long double geant_units::operators::operator""_cm3 (long double length)
 
constexpr long double geant_units::operators::operator""_deg (long double deg)
 
constexpr long double geant_units::operators::operator""_deg (unsigned long long int deg)
 
constexpr long double geant_units::operators::operator""_eV (long double energy)
 
constexpr long double geant_units::operators::operator""_g (long double mass)
 
constexpr long double geant_units::operators::operator""_g_per_cm3 (long double density)
 
constexpr long double geant_units::operators::operator""_g_per_mole (long double mass)
 
constexpr long double geant_units::operators::operator""_GeV (long double energy)
 
constexpr long double geant_units::operators::operator""_kg (long double mass)
 
constexpr long double geant_units::operators::operator""_m (long double length)
 
constexpr long double geant_units::operators::operator""_m3 (long double length)
 
constexpr long double geant_units::operators::operator""_MeV (long double energy)
 
constexpr long double geant_units::operators::operator""_mg (long double mass)
 
constexpr long double geant_units::operators::operator""_mg_per_cm3 (long double density)
 
constexpr long double geant_units::operators::operator""_mm (long double length)
 
constexpr long double geant_units::operators::operator""_mole (long double mass)
 
constexpr long double geant_units::operators::operator""_ns (long double x)
 
constexpr long double geant_units::operators::operator""_pi (long double x)
 
constexpr long double geant_units::operators::operator""_pi (unsigned long long int x)
 
constexpr long double geant_units::operators::operator""_rad (long double rad)
 
constexpr long double geant_units::operators::operator""_s (long double x)
 
constexpr long double geant_units::operators::operator""_TeV (long double energy)
 
constexpr long double geant_units::piRadians (M_PI)
 
constexpr long double geant_units::seconds (1.e+9)
 

Variables

constexpr long double geant_units::degPerRad = 180. / piRadians