MIDSX 0.1
A x-ray transport code system for dosimetry
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1
5#ifndef MCXRAYTRANSPORT_CONSTANTS_H
6#define MCXRAYTRANSPORT_CONSTANTS_H
7
8#include <limits>
9#include <cmath>
10
11// cgs units (except for energy, which is in eV, because I'm not a complete monster)
12
13const double PI = 3.14159265358979323846;
14const double EPSILON = 1e-9;
15const double INF = std::numeric_limits<double>::infinity();
16const double ELECTRON_REST_MASS = 0.51099895000E6; // eV/c^2
17const double ELECTRON_CHARGE = 1.6021766208e-19; // C
18const double ELECTRON_RADIUS = 2.8179403227e-13; // cm
19const double SPEED_OF_LIGHT = 299792458E2; // cm/s
20const double PLANCK_CONSTANT = 4.135667662e-15; // eV*s
21const double NUMBER_DENSITY_AT_STP = 0.02504E21; // cm^-3
22const double AVOGADRO_CONSTANT = 6.022140857e23; // mol^-1
23const double ALPHA = ELECTRON_REST_MASS/(sqrt(2)*PLANCK_CONSTANT*SPEED_OF_LIGHT*1E8); // in angstroms
24
25#endif //MCXRAYTRANSPORT_CONSTANTS_H