Reactions  0.1.2
Handling reaction trees and decays
Public Member Functions | Static Public Member Functions | List of all members
reactions::nubase_system_of_units Class Referencefinal

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_unitsinstance ()
 Get the only instance of this class. More...
 

Detailed Description

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.

Member Function Documentation

◆ get_energy_units()

energy_units reactions::nubase_system_of_units::get_energy_units ( ) const
inline

Get the energy units.

◆ get_time_units()

time_units reactions::nubase_system_of_units::get_time_units ( ) const
inline

Get the time units.

◆ instance()

static nubase_system_of_units& reactions::nubase_system_of_units::instance ( )
inlinestatic

Get the only instance of this class.

◆ set_energy_units()

void reactions::nubase_system_of_units::set_energy_units ( energy_units  u)
inline

Set the energy units.

◆ set_time_units()

void reactions::nubase_system_of_units::set_time_units ( time_units  u)
inline

Set the time units.

◆ units()

template<class Units >
Units reactions::nubase_system_of_units::units ( ) const
inline

Access the given units.


The documentation for this class was generated from the following file: