Warning, file /include/edm4eic/unit_system.h was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004 #pragma once
0005
0006 namespace edm4eic {
0007
0008 namespace unit {
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 static constexpr double mm = 1.0;
0026 static constexpr double cm = 1e1 * mm;
0027 static constexpr double um = 1e-3 * mm;
0028 static constexpr double nm = 1e-6 * mm;
0029 static constexpr double m = 1e3 * mm;
0030
0031
0032 static constexpr double ns = 1.0;
0033 static constexpr double s = 1e9 * ns;
0034 static constexpr double ms = 1e6 * ns;
0035 static constexpr double us = 1e3 * ns;
0036 static constexpr double ps = 1e-3 * ns;
0037
0038
0039 static constexpr double GeV = 1.0;
0040 static constexpr double MeV = 1e-3 * GeV;
0041 static constexpr double keV = 1e-6 * GeV;
0042 static constexpr double eV = 1e-9 * GeV;
0043
0044 }
0045
0046 }