pdg_system_of_units_sgl

class reactions.pdg_system_of_units_sgl

Bases: object

Object to serve as an interface with the PDG system of units. This object is declared as a singleton. Any call from a PDG element to an accessor will use the system of units defined in this class.

Methods Summary

get_energy_units

Get the current units of energy for the masses and widths of PDG elements

set_energy_units(units)

Set the units of energy for the masses and widths of PDG elements

Methods Documentation

get_energy_units()

Get the current units of energy for the masses and widths of PDG elements

Returns

Units of energy

Return type

str

set_energy_units(units)

Set the units of energy for the masses and widths of PDG elements

Parameters

str – Units of energy to use.

Raises

reactions.ValueError – If the provided units are unknown