Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
2df35010
Commit
2df35010
authored
Apr 22, 2016
by
Lynn Garren
Browse files
use static constexpr instead of static const in Units
parent
2784bb7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Units/Units/PhysicalConstants.h
View file @
2df35010
...
...
@@ -47,81 +47,81 @@ namespace CLHEP {
//
//
//
static
const
double
Avogadro
=
6.02214179e+23
/
mole
;
static
const
expr
double
Avogadro
=
6.02214179e+23
/
mole
;
//
// c = 299.792458 mm/ns
// c^2 = 898.7404 (mm/ns)^2
//
static
const
double
c_light
=
2.99792458e+8
*
m
/
s
;
static
const
double
c_squared
=
c_light
*
c_light
;
static
const
expr
double
c_light
=
2.99792458e+8
*
m
/
s
;
static
const
expr
double
c_squared
=
c_light
*
c_light
;
//
// h = 4.13566e-12 MeV*ns
// hbar = 6.58212e-13 MeV*ns
// hbarc = 197.32705e-12 MeV*mm
//
static
const
double
h_Planck
=
6.62606896e-34
*
joule
*
s
;
static
const
double
hbar_Planck
=
h_Planck
/
twopi
;
static
const
double
hbarc
=
hbar_Planck
*
c_light
;
static
const
double
hbarc_squared
=
hbarc
*
hbarc
;
static
const
expr
double
h_Planck
=
6.62606896e-34
*
joule
*
s
;
static
const
expr
double
hbar_Planck
=
h_Planck
/
twopi
;
static
const
expr
double
hbarc
=
hbar_Planck
*
c_light
;
static
const
expr
double
hbarc_squared
=
hbarc
*
hbarc
;
//
//
//
static
const
double
electron_charge
=
-
eplus
;
// see SystemOfUnits.h
static
const
double
e_squared
=
eplus
*
eplus
;
static
const
expr
double
electron_charge
=
-
eplus
;
// see SystemOfUnits.h
static
const
expr
double
e_squared
=
eplus
*
eplus
;
//
// amu_c2 - atomic equivalent mass unit
// - AKA, unified atomic mass unit (u)
// amu - atomic mass unit
//
static
const
double
electron_mass_c2
=
0.510998910
*
MeV
;
static
const
double
proton_mass_c2
=
938.272013
*
MeV
;
static
const
double
neutron_mass_c2
=
939.56536
*
MeV
;
static
const
double
amu_c2
=
931.494028
*
MeV
;
static
const
double
amu
=
amu_c2
/
c_squared
;
static
const
expr
double
electron_mass_c2
=
0.510998910
*
MeV
;
static
const
expr
double
proton_mass_c2
=
938.272013
*
MeV
;
static
const
expr
double
neutron_mass_c2
=
939.56536
*
MeV
;
static
const
expr
double
amu_c2
=
931.494028
*
MeV
;
static
const
expr
double
amu
=
amu_c2
/
c_squared
;
//
// permeability of free space mu0 = 2.01334e-16 Mev*(ns*eplus)^2/mm
// permittivity of free space epsil0 = 5.52636e+10 eplus^2/(MeV*mm)
//
static
const
double
mu0
=
4
*
pi
*
1.e-7
*
henry
/
m
;
static
const
double
epsilon0
=
1.
/
(
c_squared
*
mu0
);
static
const
expr
double
mu0
=
4
*
pi
*
1.e-7
*
henry
/
m
;
static
const
expr
double
epsilon0
=
1.
/
(
c_squared
*
mu0
);
//
// electromagnetic coupling = 1.43996e-12 MeV*mm/(eplus^2)
//
static
const
double
elm_coupling
=
e_squared
/
(
4
*
pi
*
epsilon0
);
static
const
double
fine_structure_const
=
elm_coupling
/
hbarc
;
static
const
double
classic_electr_radius
=
elm_coupling
/
electron_mass_c2
;
static
const
double
electron_Compton_length
=
hbarc
/
electron_mass_c2
;
static
const
double
Bohr_radius
=
electron_Compton_length
/
fine_structure_const
;
static
const
expr
double
elm_coupling
=
e_squared
/
(
4
*
pi
*
epsilon0
);
static
const
expr
double
fine_structure_const
=
elm_coupling
/
hbarc
;
static
const
expr
double
classic_electr_radius
=
elm_coupling
/
electron_mass_c2
;
static
const
expr
double
electron_Compton_length
=
hbarc
/
electron_mass_c2
;
static
const
expr
double
Bohr_radius
=
electron_Compton_length
/
fine_structure_const
;
static
const
double
alpha_rcl2
=
fine_structure_const
static
const
expr
double
alpha_rcl2
=
fine_structure_const
*
classic_electr_radius
*
classic_electr_radius
;
static
const
double
twopi_mc2_rcl2
=
twopi
*
electron_mass_c2
static
const
expr
double
twopi_mc2_rcl2
=
twopi
*
electron_mass_c2
*
classic_electr_radius
*
classic_electr_radius
;
//
//
//
static
const
double
k_Boltzmann
=
8.617343e-11
*
MeV
/
kelvin
;
static
const
expr
double
k_Boltzmann
=
8.617343e-11
*
MeV
/
kelvin
;
//
//
//
static
const
double
STP_Temperature
=
273.15
*
kelvin
;
static
const
double
STP_Pressure
=
1.
*
atmosphere
;
static
const
double
kGasThreshold
=
10.
*
mg
/
cm3
;
static
const
expr
double
STP_Temperature
=
273.15
*
kelvin
;
static
const
expr
double
STP_Pressure
=
1.
*
atmosphere
;
static
const
expr
double
kGasThreshold
=
10.
*
mg
/
cm3
;
//
//
//
static
const
double
universe_mean_density
=
1.e-25
*
g
/
cm3
;
static
const
expr
double
universe_mean_density
=
1.e-25
*
g
/
cm3
;
}
// namespace CLHEP
...
...
Units/Units/SystemOfUnits.h
View file @
2df35010
...
...
@@ -52,265 +52,265 @@ namespace CLHEP {
//
//
//
static
const
double
pi
=
3.14159265358979323846
;
static
const
double
twopi
=
2
*
pi
;
static
const
double
halfpi
=
pi
/
2
;
static
const
double
pi2
=
pi
*
pi
;
static
const
expr
double
pi
=
3.14159265358979323846
;
static
const
expr
double
twopi
=
2
*
pi
;
static
const
expr
double
halfpi
=
pi
/
2
;
static
const
expr
double
pi2
=
pi
*
pi
;
//
// Length [L]
//
static
const
double
millimeter
=
1.
;
static
const
double
millimeter2
=
millimeter
*
millimeter
;
static
const
double
millimeter3
=
millimeter
*
millimeter
*
millimeter
;
static
const
expr
double
millimeter
=
1.
;
static
const
expr
double
millimeter2
=
millimeter
*
millimeter
;
static
const
expr
double
millimeter3
=
millimeter
*
millimeter
*
millimeter
;
static
const
double
centimeter
=
10.
*
millimeter
;
static
const
double
centimeter2
=
centimeter
*
centimeter
;
static
const
double
centimeter3
=
centimeter
*
centimeter
*
centimeter
;
static
const
expr
double
centimeter
=
10.
*
millimeter
;
static
const
expr
double
centimeter2
=
centimeter
*
centimeter
;
static
const
expr
double
centimeter3
=
centimeter
*
centimeter
*
centimeter
;
static
const
double
meter
=
1000.
*
millimeter
;
static
const
double
meter2
=
meter
*
meter
;
static
const
double
meter3
=
meter
*
meter
*
meter
;
static
const
expr
double
meter
=
1000.
*
millimeter
;
static
const
expr
double
meter2
=
meter
*
meter
;
static
const
expr
double
meter3
=
meter
*
meter
*
meter
;
static
const
double
kilometer
=
1000.
*
meter
;
static
const
double
kilometer2
=
kilometer
*
kilometer
;
static
const
double
kilometer3
=
kilometer
*
kilometer
*
kilometer
;
static
const
expr
double
kilometer
=
1000.
*
meter
;
static
const
expr
double
kilometer2
=
kilometer
*
kilometer
;
static
const
expr
double
kilometer3
=
kilometer
*
kilometer
*
kilometer
;
static
const
double
parsec
=
3.0856775807e+16
*
meter
;
static
const
expr
double
parsec
=
3.0856775807e+16
*
meter
;
static
const
double
micrometer
=
1.e-6
*
meter
;
static
const
double
nanometer
=
1.e-9
*
meter
;
static
const
double
angstrom
=
1.e-10
*
meter
;
static
const
double
fermi
=
1.e-15
*
meter
;
static
const
expr
double
micrometer
=
1.e-6
*
meter
;
static
const
expr
double
nanometer
=
1.e-9
*
meter
;
static
const
expr
double
angstrom
=
1.e-10
*
meter
;
static
const
expr
double
fermi
=
1.e-15
*
meter
;
static
const
double
barn
=
1.e-28
*
meter2
;
static
const
double
millibarn
=
1.e-3
*
barn
;
static
const
double
microbarn
=
1.e-6
*
barn
;
static
const
double
nanobarn
=
1.e-9
*
barn
;
static
const
double
picobarn
=
1.e-12
*
barn
;
static
const
expr
double
barn
=
1.e-28
*
meter2
;
static
const
expr
double
millibarn
=
1.e-3
*
barn
;
static
const
expr
double
microbarn
=
1.e-6
*
barn
;
static
const
expr
double
nanobarn
=
1.e-9
*
barn
;
static
const
expr
double
picobarn
=
1.e-12
*
barn
;
// symbols
static
const
double
nm
=
nanometer
;
static
const
double
um
=
micrometer
;
static
const
expr
double
nm
=
nanometer
;
static
const
expr
double
um
=
micrometer
;
static
const
double
mm
=
millimeter
;
static
const
double
mm2
=
millimeter2
;
static
const
double
mm3
=
millimeter3
;
static
const
expr
double
mm
=
millimeter
;
static
const
expr
double
mm2
=
millimeter2
;
static
const
expr
double
mm3
=
millimeter3
;
static
const
double
cm
=
centimeter
;
static
const
double
cm2
=
centimeter2
;
static
const
double
cm3
=
centimeter3
;
static
const
expr
double
cm
=
centimeter
;
static
const
expr
double
cm2
=
centimeter2
;
static
const
expr
double
cm3
=
centimeter3
;
static
const
double
liter
=
1.e+3
*
cm3
;
static
const
double
L
=
liter
;
static
const
double
dL
=
1.e-1
*
liter
;
static
const
double
cL
=
1.e-2
*
liter
;
static
const
double
mL
=
1.e-3
*
liter
;
static
const
expr
double
liter
=
1.e+3
*
cm3
;
static
const
expr
double
L
=
liter
;
static
const
expr
double
dL
=
1.e-1
*
liter
;
static
const
expr
double
cL
=
1.e-2
*
liter
;
static
const
expr
double
mL
=
1.e-3
*
liter
;
static
const
double
m
=
meter
;
static
const
double
m2
=
meter2
;
static
const
double
m3
=
meter3
;
static
const
expr
double
m
=
meter
;
static
const
expr
double
m2
=
meter2
;
static
const
expr
double
m3
=
meter3
;
static
const
double
km
=
kilometer
;
static
const
double
km2
=
kilometer2
;
static
const
double
km3
=
kilometer3
;
static
const
expr
double
km
=
kilometer
;
static
const
expr
double
km2
=
kilometer2
;
static
const
expr
double
km3
=
kilometer3
;
static
const
double
pc
=
parsec
;
static
const
expr
double
pc
=
parsec
;
//
// Angle
//
static
const
double
radian
=
1.
;
static
const
double
milliradian
=
1.e-3
*
radian
;
static
const
double
degree
=
(
pi
/
180.0
)
*
radian
;
static
const
expr
double
radian
=
1.
;
static
const
expr
double
milliradian
=
1.e-3
*
radian
;
static
const
expr
double
degree
=
(
pi
/
180.0
)
*
radian
;
static
const
double
steradian
=
1.
;
static
const
expr
double
steradian
=
1.
;
// symbols
static
const
double
rad
=
radian
;
static
const
double
mrad
=
milliradian
;
static
const
double
sr
=
steradian
;
static
const
double
deg
=
degree
;
static
const
expr
double
rad
=
radian
;
static
const
expr
double
mrad
=
milliradian
;
static
const
expr
double
sr
=
steradian
;
static
const
expr
double
deg
=
degree
;
//
// Time [T]
//
static
const
double
nanosecond
=
1.
;
static
const
double
second
=
1.e+9
*
nanosecond
;
static
const
double
millisecond
=
1.e-3
*
second
;
static
const
double
microsecond
=
1.e-6
*
second
;
static
const
double
picosecond
=
1.e-12
*
second
;
static
const
expr
double
nanosecond
=
1.
;
static
const
expr
double
second
=
1.e+9
*
nanosecond
;
static
const
expr
double
millisecond
=
1.e-3
*
second
;
static
const
expr
double
microsecond
=
1.e-6
*
second
;
static
const
expr
double
picosecond
=
1.e-12
*
second
;
static
const
double
hertz
=
1.
/
second
;
static
const
double
kilohertz
=
1.e+3
*
hertz
;
static
const
double
megahertz
=
1.e+6
*
hertz
;
static
const
expr
double
hertz
=
1.
/
second
;
static
const
expr
double
kilohertz
=
1.e+3
*
hertz
;
static
const
expr
double
megahertz
=
1.e+6
*
hertz
;
// symbols
static
const
double
ns
=
nanosecond
;
static
const
double
s
=
second
;
static
const
double
ms
=
millisecond
;
static
const
expr
double
ns
=
nanosecond
;
static
const
expr
double
s
=
second
;
static
const
expr
double
ms
=
millisecond
;
//
// Electric charge [Q]
//
static
const
double
eplus
=
1.
;
// positron charge
static
const
double
e_SI
=
1.602176487e-19
;
// positron charge in coulomb
static
const
double
coulomb
=
eplus
/
e_SI
;
// coulomb = 6.24150 e+18 * eplus
static
const
expr
double
eplus
=
1.
;
// positron charge
static
const
expr
double
e_SI
=
1.602176487e-19
;
// positron charge in coulomb
static
const
expr
double
coulomb
=
eplus
/
e_SI
;
// coulomb = 6.24150 e+18 * eplus
//
// Energy [E]
//
static
const
double
megaelectronvolt
=
1.
;
static
const
double
electronvolt
=
1.e-6
*
megaelectronvolt
;
static
const
double
kiloelectronvolt
=
1.e-3
*
megaelectronvolt
;
static
const
double
gigaelectronvolt
=
1.e+3
*
megaelectronvolt
;
static
const
double
teraelectronvolt
=
1.e+6
*
megaelectronvolt
;
static
const
double
petaelectronvolt
=
1.e+9
*
megaelectronvolt
;
static
const
expr
double
megaelectronvolt
=
1.
;
static
const
expr
double
electronvolt
=
1.e-6
*
megaelectronvolt
;
static
const
expr
double
kiloelectronvolt
=
1.e-3
*
megaelectronvolt
;
static
const
expr
double
gigaelectronvolt
=
1.e+3
*
megaelectronvolt
;
static
const
expr
double
teraelectronvolt
=
1.e+6
*
megaelectronvolt
;
static
const
expr
double
petaelectronvolt
=
1.e+9
*
megaelectronvolt
;
static
const
double
joule
=
electronvolt
/
e_SI
;
// joule = 6.24150 e+12 * MeV
static
const
expr
double
joule
=
electronvolt
/
e_SI
;
// joule = 6.24150 e+12 * MeV
// symbols
static
const
double
MeV
=
megaelectronvolt
;
static
const
double
eV
=
electronvolt
;
static
const
double
keV
=
kiloelectronvolt
;
static
const
double
GeV
=
gigaelectronvolt
;
static
const
double
TeV
=
teraelectronvolt
;
static
const
double
PeV
=
petaelectronvolt
;
static
const
expr
double
MeV
=
megaelectronvolt
;
static
const
expr
double
eV
=
electronvolt
;
static
const
expr
double
keV
=
kiloelectronvolt
;
static
const
expr
double
GeV
=
gigaelectronvolt
;
static
const
expr
double
TeV
=
teraelectronvolt
;
static
const
expr
double
PeV
=
petaelectronvolt
;
//
// Mass [E][T^2][L^-2]
//
static
const
double
kilogram
=
joule
*
second
*
second
/
(
meter
*
meter
);
static
const
double
gram
=
1.e-3
*
kilogram
;
static
const
double
milligram
=
1.e-3
*
gram
;
static
const
expr
double
kilogram
=
joule
*
second
*
second
/
(
meter
*
meter
);
static
const
expr
double
gram
=
1.e-3
*
kilogram
;
static
const
expr
double
milligram
=
1.e-3
*
gram
;
// symbols
static
const
double
kg
=
kilogram
;
static
const
double
g
=
gram
;
static
const
double
mg
=
milligram
;
static
const
expr
double
kg
=
kilogram
;
static
const
expr
double
g
=
gram
;
static
const
expr
double
mg
=
milligram
;
//
// Power [E][T^-1]
//
static
const
double
watt
=
joule
/
second
;
// watt = 6.24150 e+3 * MeV/ns
static
const
expr
double
watt
=
joule
/
second
;
// watt = 6.24150 e+3 * MeV/ns
//
// Force [E][L^-1]
//
static
const
double
newton
=
joule
/
meter
;
// newton = 6.24150 e+9 * MeV/mm
static
const
expr
double
newton
=
joule
/
meter
;
// newton = 6.24150 e+9 * MeV/mm
//
// Pressure [E][L^-3]
//
#define pascal hep_pascal // a trick to avoid warnings
static
const
double
hep_pascal
=
newton
/
m2
;
// pascal = 6.24150 e+3 * MeV/mm3
static
const
double
bar
=
100000
*
pascal
;
// bar = 6.24150 e+8 * MeV/mm3
static
const
double
atmosphere
=
101325
*
pascal
;
// atm = 6.32420 e+8 * MeV/mm3
static
const
expr
double
hep_pascal
=
newton
/
m2
;
// pascal = 6.24150 e+3 * MeV/mm3
static
const
expr
double
bar
=
100000
*
pascal
;
// bar = 6.24150 e+8 * MeV/mm3
static
const
expr
double
atmosphere
=
101325
*
pascal
;
// atm = 6.32420 e+8 * MeV/mm3
//
// Electric current [Q][T^-1]
//
static
const
double
ampere
=
coulomb
/
second
;
// ampere = 6.24150 e+9 * eplus/ns
static
const
double
milliampere
=
1.e-3
*
ampere
;
static
const
double
microampere
=
1.e-6
*
ampere
;
static
const
double
nanoampere
=
1.e-9
*
ampere
;
static
const
expr
double
ampere
=
coulomb
/
second
;
// ampere = 6.24150 e+9 * eplus/ns
static
const
expr
double
milliampere
=
1.e-3
*
ampere
;
static
const
expr
double
microampere
=
1.e-6
*
ampere
;
static
const
expr
double
nanoampere
=
1.e-9
*
ampere
;
//
// Electric potential [E][Q^-1]
//
static
const
double
megavolt
=
megaelectronvolt
/
eplus
;
static
const
double
kilovolt
=
1.e-3
*
megavolt
;
static
const
double
volt
=
1.e-6
*
megavolt
;
static
const
expr
double
megavolt
=
megaelectronvolt
/
eplus
;
static
const
expr
double
kilovolt
=
1.e-3
*
megavolt
;
static
const
expr
double
volt
=
1.e-6
*
megavolt
;
//
// Electric resistance [E][T][Q^-2]
//
static
const
double
ohm
=
volt
/
ampere
;
// ohm = 1.60217e-16*(MeV/eplus)/(eplus/ns)
static
const
expr
double
ohm
=
volt
/
ampere
;
// ohm = 1.60217e-16*(MeV/eplus)/(eplus/ns)
//
// Electric capacitance [Q^2][E^-1]
//
static
const
double
farad
=
coulomb
/
volt
;
// farad = 6.24150e+24 * eplus/Megavolt
static
const
double
millifarad
=
1.e-3
*
farad
;
static
const
double
microfarad
=
1.e-6
*
farad
;
static
const
double
nanofarad
=
1.e-9
*
farad
;
static
const
double
picofarad
=
1.e-12
*
farad
;
static
const
expr
double
farad
=
coulomb
/
volt
;
// farad = 6.24150e+24 * eplus/Megavolt
static
const
expr
double
millifarad
=
1.e-3
*
farad
;
static
const
expr
double
microfarad
=
1.e-6
*
farad
;
static
const
expr
double
nanofarad
=
1.e-9
*
farad
;
static
const
expr
double
picofarad
=
1.e-12
*
farad
;
//
// Magnetic Flux [T][E][Q^-1]
//
static
const
double
weber
=
volt
*
second
;
// weber = 1000*megavolt*ns
static
const
expr
double
weber
=
volt
*
second
;
// weber = 1000*megavolt*ns
//
// Magnetic Field [T][E][Q^-1][L^-2]
//
static
const
double
tesla
=
volt
*
second
/
meter2
;
// tesla =0.001*megavolt*ns/mm2
static
const
expr
double
tesla
=
volt
*
second
/
meter2
;
// tesla =0.001*megavolt*ns/mm2
static
const
double
gauss
=
1.e-4
*
tesla
;
static
const
double
kilogauss
=
1.e-1
*
tesla
;
static
const
expr
double
gauss
=
1.e-4
*
tesla
;
static
const
expr
double
kilogauss
=
1.e-1
*
tesla
;
//
// Inductance [T^2][E][Q^-2]
//
static
const
double
henry
=
weber
/
ampere
;
// henry = 1.60217e-7*MeV*(ns/eplus)**2
static
const
expr
double
henry
=
weber
/
ampere
;
// henry = 1.60217e-7*MeV*(ns/eplus)**2
//
// Temperature
//
static
const
double
kelvin
=
1.
;
static
const
expr
double
kelvin
=
1.
;
//
// Amount of substance
//
static
const
double
mole
=
1.
;
static
const
expr
double
mole
=
1.
;
//
// Activity [T^-1]
//
static
const
double
becquerel
=
1.
/
second
;
static
const
double
curie
=
3.7e+10
*
becquerel
;
static
const
double
kilobecquerel
=
1.e+3
*
becquerel
;
static
const
double
megabecquerel
=
1.e+6
*
becquerel
;
static
const
double
gigabecquerel
=
1.e+9
*
becquerel
;
static
const
double
millicurie
=
1.e-3
*
curie
;
static
const
double
microcurie
=
1.e-6
*
curie
;
static
const
double
Bq
=
becquerel
;
static
const
double
kBq
=
kilobecquerel
;
static
const
double
MBq
=
megabecquerel
;
static
const
double
GBq
=
gigabecquerel
;
static
const
double
Ci
=
curie
;
static
const
double
mCi
=
millicurie
;
static
const
double
uCi
=
microcurie
;
static
const
expr
double
becquerel
=
1.
/
second
;
static
const
expr
double
curie
=
3.7e+10
*
becquerel
;
static
const
expr
double
kilobecquerel
=
1.e+3
*
becquerel
;
static
const
expr
double
megabecquerel
=
1.e+6
*
becquerel
;
static
const
expr
double
gigabecquerel
=
1.e+9
*
becquerel
;
static
const
expr
double
millicurie
=
1.e-3
*
curie
;
static
const
expr
double
microcurie
=
1.e-6
*
curie
;
static
const
expr
double
Bq
=
becquerel
;
static
const
expr
double
kBq
=
kilobecquerel
;
static
const
expr
double
MBq
=
megabecquerel
;
static
const
expr
double
GBq
=
gigabecquerel
;
static
const
expr
double
Ci
=
curie
;
static
const
expr
double
mCi
=
millicurie
;
static
const
expr
double
uCi
=
microcurie
;
//
// Absorbed dose [L^2][T^-2]
//
static
const
double
gray
=
joule
/
kilogram
;
static
const
double
kilogray
=
1.e+3
*
gray
;
static
const
double
milligray
=
1.e-3
*
gray
;
static
const
double
microgray
=
1.e-6
*
gray
;
static
const
expr
double
gray
=
joule
/
kilogram
;
static
const
expr
double
kilogray
=
1.e+3
*
gray
;
static
const
expr
double
milligray
=
1.e-3
*
gray
;
static
const
expr
double
microgray
=
1.e-6
*
gray
;
//
// Luminous intensity [I]
//
static
const
double
candela
=
1.
;
static
const
expr
double
candela
=
1.
;
//
// Luminous flux [I]
//
static
const
double
lumen
=
candela
*
steradian
;
static
const
expr
double
lumen
=
candela
*
steradian
;
//
// Illuminance [I][L^-2]
//
static
const
double
lux
=
lumen
/
meter2
;
static
const
expr
double
lux
=
lumen
/
meter2
;
//
// Miscellaneous
//
static
const
double
perCent
=
0.01
;
static
const
double
perThousand
=
0.001
;
static
const
double
perMillion
=
0.000001
;
static
const
expr
double
perCent
=
0.01
;
static
const
expr
double
perThousand
=
0.001
;
static
const
expr
double
perMillion
=
0.000001
;
}
// namespace CLHEP
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment