ATLAS Offline Software
Loading...
Searching...
No Matches
Athena::Units Namespace Reference

Classes

class  Unit
 Wrapper to avoid constant divisions when using units. More...

Functions

template<int TAG>
constexpr double operator/ (double x, const Unit< TAG > u)
template<int TAG>
constexpr float operator/ (float x, const Unit< TAG > u)
 UNIT (millimeter)
 UNIT (millimeter2)
 UNIT (millimeter3)
 UNIT (centimeter)
 UNIT (centimeter2)
 UNIT (centimeter3)
 UNIT (meter)
 UNIT (meter2)
 UNIT (meter3)
 UNIT (micrometer)
 UNIT (um)
 UNIT (mm)
 UNIT (mm2)
 UNIT (mm3)
 UNIT (cm)
 UNIT (cm2)
 UNIT (cm3)
 UNIT (radian)
 UNIT (degree)
 UNIT (rad)
 UNIT (deg)
 UNIT (picosecond)
 UNIT (nanosecond)
 UNIT (microsecond)
 UNIT (millisecond)
 UNIT (second)
 UNIT (ns)
 UNIT (s)
 UNIT (ms)
 UNIT (keV)
 UNIT (MeV)
 UNIT (GeV)
 UNIT (TeV)
 UNIT (gram)
 UNIT (g)
 UNIT (mole)
 UNIT (c_light)

Function Documentation

◆ operator/() [1/2]

template<int TAG>
double Athena::Units::operator/ ( double x,
const Unit< TAG > u )
constexpr

Definition at line 60 of file Units.h.

61{
62 constexpr double recip = 1. / static_cast<double>(u);
63 return x * recip;
64}
#define x

◆ operator/() [2/2]

template<int TAG>
float Athena::Units::operator/ ( float x,
const Unit< TAG > u )
constexpr

Definition at line 66 of file Units.h.

67{
68 constexpr float recip = 1. / static_cast<float>(u);
69 return x * recip;
70}

◆ UNIT() [1/37]

Athena::Units::UNIT ( c_light )

◆ UNIT() [2/37]

Athena::Units::UNIT ( centimeter )

◆ UNIT() [3/37]

Athena::Units::UNIT ( centimeter2 )

◆ UNIT() [4/37]

Athena::Units::UNIT ( centimeter3 )

◆ UNIT() [5/37]

Athena::Units::UNIT ( cm )

◆ UNIT() [6/37]

Athena::Units::UNIT ( cm2 )

◆ UNIT() [7/37]

Athena::Units::UNIT ( cm3 )

◆ UNIT() [8/37]

Athena::Units::UNIT ( deg )

◆ UNIT() [9/37]

Athena::Units::UNIT ( degree )

◆ UNIT() [10/37]

Athena::Units::UNIT ( g )

◆ UNIT() [11/37]

Athena::Units::UNIT ( GeV )

◆ UNIT() [12/37]

Athena::Units::UNIT ( gram )

◆ UNIT() [13/37]

Athena::Units::UNIT ( keV )

◆ UNIT() [14/37]

Athena::Units::UNIT ( meter )

◆ UNIT() [15/37]

Athena::Units::UNIT ( meter2 )

◆ UNIT() [16/37]

Athena::Units::UNIT ( meter3 )

◆ UNIT() [17/37]

Athena::Units::UNIT ( MeV )

◆ UNIT() [18/37]

Athena::Units::UNIT ( micrometer )

◆ UNIT() [19/37]

Athena::Units::UNIT ( microsecond )

◆ UNIT() [20/37]

Athena::Units::UNIT ( millimeter )

◆ UNIT() [21/37]

Athena::Units::UNIT ( millimeter2 )

◆ UNIT() [22/37]

Athena::Units::UNIT ( millimeter3 )

◆ UNIT() [23/37]

Athena::Units::UNIT ( millisecond )

◆ UNIT() [24/37]

Athena::Units::UNIT ( mm )

◆ UNIT() [25/37]

Athena::Units::UNIT ( mm2 )

◆ UNIT() [26/37]

Athena::Units::UNIT ( mm3 )

◆ UNIT() [27/37]

Athena::Units::UNIT ( mole )

◆ UNIT() [28/37]

Athena::Units::UNIT ( ms )

◆ UNIT() [29/37]

Athena::Units::UNIT ( nanosecond )

◆ UNIT() [30/37]

Athena::Units::UNIT ( ns )

◆ UNIT() [31/37]

Athena::Units::UNIT ( picosecond )

◆ UNIT() [32/37]

Athena::Units::UNIT ( rad )

◆ UNIT() [33/37]

Athena::Units::UNIT ( radian )

◆ UNIT() [34/37]

Athena::Units::UNIT ( s )

◆ UNIT() [35/37]

Athena::Units::UNIT ( second )

◆ UNIT() [36/37]

Athena::Units::UNIT ( TeV )

◆ UNIT() [37/37]

Athena::Units::UNIT ( um )