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. Currently only the energy units can be modified, which must be eV, keV, MeV, GeV, TeV or PeV. The GeV units are used by default.

Methods Summary

get_energy_units

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

set_energy_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()

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

Parameters

units (str) – units of energy to use

Raises

reactions.ValueError – if the provided units are unknown