LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
util::quantities::units Namespace Reference

Definitions of actual units. More...

Classes

struct  Byte
 
struct  Coulomb
 
struct  Counts
 
struct  ElectronVolt
 
struct  Hertz
 
struct  Meter
 
struct  Second
 
struct  Tick
 
struct  Volt
 

Detailed Description

Definitions of actual units.

Units describe a reference quantity to measure a dimension. The namespace units contains the definitions of actual units (e.g. seconds, ampere...)

Each unit is represented by a class. Each class should follow the interface of util::quantities::concepts::UnitBase, but it does not have to inherit from it.

Each unit must provide its name and its symbol (no locale is supported!). Example:

struct byte {
static constexpr auto symbol = "B"sv;
static constexpr auto name = "byte"sv;
}; // byte
} // namespace util::quantities::units