|
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... | |
| time_units | get_time_units () const |
| Get the time 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... | |
| void | set_time_units (time_units u) |
| Set the time units. More... | |
Static Public Member Functions | |
| static nubase_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 nubase_element objects, scaling them according to the units defined by the user.
|
inline |
Get the energy units.
|
inline |
Get the time units.
|
inlinestatic |
Get the only instance of this class.
|
inline |
Set the energy units.
|
inline |
Set the time units.
|
inline |
Access the given units.
1.8.13