|
Reactions
0.1.2
Handling reaction trees and decays
|
Defines a singleton to handle the units of PDG elements. More...
Public Member Functions | |
| energy_units | get_energy_units () const |
| Get the energy units. More... | |
| template<class Units > | |
| Units | units () const |
| Access the given units. More... | |
| void | set_energy_units (energy_units u) |
| Set the energy units. More... | |
Static Public Member Functions | |
| static pdg_system_of_units & | instance () |
| Get the only instance of this class. More... | |
Defines a singleton to handle the units of PDG elements.
This class affects the values returned by the pdg_element objects, scaling them according to the units defined by the user.
|
inline |
Get the energy units.
|
inlinestatic |
Get the only instance of this class.
|
inline |
Set the energy units.
|
inline |
Access the given units.
1.8.13