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

Go to the source code of this file.

Namespaces

 galactic
 

Variables

const double galactic::ampere = 1
 
const double galactic::degree = M_PI / 180
 
const double galactic::EeV = 1
 
const double galactic::eplus = 1
 
const double galactic::eV = 1e-18 * EeV
 
const double galactic::gauss = 1e-4 * tesla
 
const double galactic::henry = volt * second / ampere
 
const double galactic::kiloparsec = 1.e3 * parsec
 
const double galactic::kiloparsec2 = kiloparsec * kiloparsec
 
const double galactic::lightspeed = lightyear / year
 
const double galactic::lightyear = 1
 
const double galactic::meter = lightyear / (3 * 3.15e15)
 
const double galactic::meter2 = meter * meter
 
const double galactic::microgauss = 1e-6 * gauss
 
const double galactic::mu0 = 4 * M_PI * 1e-7 * henry/meter
 
const double galactic::parsec = 3.26 * lightyear
 
const double galactic::second = year / 3.15e7
 
const double galactic::tesla = volt * second / meter2
 
const double galactic::volt = eV / eplus
 
const double galactic::year = 1
 

Detailed Description

This file contains useful units for propagation of cosmic rays through the models of galactic magnetic field. Units are enclosed in a namespace "galactic" to avoid potential clashes with the Offline constants in namespace "utl".

Author
Darko Veberic
Date
12 May 2007

Definition in file GalacticUnits.h.


, generated on Tue Sep 26 2023.