Skip to content

mp_units::hep

The system of quantities and units of high energy physics (HEP)

Description

Energy and electric charge are base quantities instead of mass and electric current. Its conventions follow CLHEP, Gaudi, Geant4, and ROOT, which express length in millimetres, time in nanoseconds, energy in megaelectronvolts, and electric charge in positron charges. The physical constants default to the CODATA 2018 values, and codata2014 and codata2022 hold the 2014 and 2022 values.

using hep::unit_symbols::GeV;
using hep::unit_symbols::MeV;

quantity higgs_energy = 125.1 * GeV;
quantity in_megaelectronvolts = higgs_energy.in(MeV);  // 125100 MeV

Namespaces

NameDescription
codata2014 The HEP physical constants with their CODATA 2014 values
codata2022 The HEP physical constants with their CODATA 2022 values

Types

Name
Q_value
absorbed_dose
activity
amount_of_substance
ampere
angstrom
area
astronomical_unit
atmosphere
atomic_mass_unit
avogadro_constant
azimuthal_angle
bar
barn
becquerel
binding_energy
bohr_magneton
bohr_radius
boltzmann_constant
candela
center_of_mass_energy
classical_electron_radius
coordinate_time
coulomb
cross_section
curie
decay_constant
decay_length
dim_amount_of_substance
dim_electric_charge
dim_energy
dim_length
dim_luminous_intensity
dim_temperature
dim_time
displacement
duration
effective_mass
electric_capacitance
electric_charge
electric_current
electric_potential
electric_resistance
electron_compton_wavelength
electron_mass
electronvolt
elementary_charge
energy
eplus
excitation_energy
farad
fine_structure_constant
force
frequency
gas_threshold
gauss
gram
gray
half_life
height
henry
hertz
illuminance
impact_parameter
inductance
interaction_length
invariant_mass
ionization_energy
joule
kelvin
kinetic_energy
length
lifetime
liter
lorentz_factor
lumen
luminous_flux
luminous_intensity
lux
magnetic_field
magnetic_flux
mass
mean_free_path
mean_lifetime
meter
missing_energy
mole
momentum
neutron_mass
newton
nuclear_interaction_length
nuclear_magneton
number_density
ohm
opening_angle
parsec
pascal
path_length
permeability_of_vacuum
phase
planck_constant
polar_angle
position_vector
power
pressure
proper_time
proper_velocity
proton_mass
radiation_length
radius
range
reduced_mass
relativistic_beta
rest_mass
rest_mass_energy
scattering_angle
second
separation_energy
speed
speed_of_light_in_vacuum
standard_pressure
standard_temperature
temperature
tesla
threshold_energy
time_of_flight
total_energy
transverse_energy
transverse_momentum
universe_mean_density
velocity
vertex_position
volt
volume
watt
wavelength
weber
width

Functions

NameDescription
cbrt
inverse
operator* scaled_unit specializations have priority in this operation. This means that the library framework prevents passing it as an element to the derived_unit. In such case only the reference unit is passed to the derived unit and the magnitude remains outside forming another scaled unit as a result of the operation.
operator/ scaled_unit specializations have priority in this operation. This means that the library framework prevents passing it as an element to the derived_unit. In such case only the reference unit is passed to the derived unit and the magnitude remains outside forming another scaled unit as a result of the operation.
pow
sqrt
operator<< Stream insertion operators
operator== Equality operators

Variables

Name
Q_value
absorbed_dose
activity
amount_of_substance
ampere
angstrom
area
astronomical_unit
atmosphere
atomic_mass_unit
avogadro_constant
azimuthal_angle
bar
barn
becquerel
binding_energy
bohr_magneton
bohr_radius
boltzmann_constant
candela
center_of_mass_energy
classical_electron_radius
coordinate_time
coulomb
cross_section
curie
decay_constant
decay_length
dim_amount_of_substance
dim_electric_charge
dim_energy
dim_length
dim_luminous_intensity
dim_temperature
dim_time
displacement
duration
effective_mass
electric_capacitance
electric_charge
electric_current
electric_potential
electric_resistance
electron_compton_wavelength
electron_mass
electronvolt
elementary_charge
energy
eplus
excitation_energy
farad
fermi
fine_structure_constant
force
frequency
gas_threshold
gauss
gram
gray
half_life
halfpi
height
henry
hertz
illuminance
impact_parameter
inductance
interaction_length
invariant_mass
ionization_energy
joule
kelvin
kinetic_energy
length
lifetime
liter
lorentz_factor
lumen
luminous_flux
luminous_intensity
lux
magnetic_field
magnetic_flux
mass
mean_free_path
mean_lifetime
meter
missing_energy
mole
momentum
neutron_mass
newton
nuclear_interaction_length
nuclear_magneton
number_density
ohm
opening_angle
parsec
pascal
path_length
perCent
perMillion
perThousand
permeability_of_vacuum
phase
pi
pi2
planck_constant
polar_angle
position_vector
power
pressure
proper_time
proper_velocity
proton_mass
radiation_length
radius
range
reduced_mass
relativistic_beta
rest_mass
rest_mass_energy
scattering_angle
second
separation_energy
speed
speed_of_light_in_vacuum
standard_pressure
standard_temperature
temperature
tesla
threshold_energy
time_of_flight
total_energy
transverse_energy
transverse_momentum
twopi
universe_mean_density
velocity
vertex_position
volt
volume
watt
wavelength
weber
width

Using Namespace Directives

NameDescription
angular A system of units that treats angle as a base dimension

See Also