ThePEG::Units Namespace Reference

The Units namespace contains the declaration of a number of classes for variables with dimension. More...


Typedefs

typedef QTY< 0, 1, 0 >::Type Energy
 Energy.
typedef Energy Mass
 Mass has the same unit as Energy <=> c == 1.
typedef QTY< 1, 0, 0 >::Type Length
 Length.
typedef Length Time
 Time has the same unit as Length.
typedef QTY<-1, 0, 0 >::Type InvLength
 Inverse Length.
typedef double Velocity
 Velocities are dimensionless fractions of c.
typedef QTY< 0, 0, 1 >::Type Charge
 Charge.
typedef QTY< 1, 1, 0 >::Type AngularMomentum
 Angular momentum.
typedef QTY<-1, 1, 0 >::Type Tension
 Tension.
typedef QTY< 2, 0, 0 >::Type Area
 Area will be assumed to be Length$^2$.
typedef QTY<-2, 0, 0 >::Type InvArea
 Inverse Area.
typedef Area CrossSection
 Cross section is an area.
typedef QTY< 2, 2, 0 >::Type Energy2XSec
 CrossSection*Energy2.
typedef QTY< 2,-2, 0 >::Type DiffXSec
 CrossSection/Energy2.
typedef QTY< 2,-4, 0 >::Type Diff2XSec
 CrossSection/Energy4.
typedef QTY< 2,-6, 0 >::Type Diff3XSec
 CrossSection/Energy6.
typedef Energy2 Scale
 Scale is the same as a squared energy.
typedef ThreeVector< LengthPoint
 A point in three-dimensional euclidean space.
typedef ThreeVector< LengthDistance
 A distance in three-dimensional euclidean space.
typedef ThreeVector< double > Axis
 A direction in three-dimensional euclidean space.
typedef ThreeVector< EnergyMomentum3
 A momentum in three-dimensional euclidean space.
typedef ThreeVector< double > Boost
 A three-dimensional boost vector.
typedef LorentzVector< LengthLorentzDistance
 A distance in four-dimensional space-time.
typedef Lorentz5Vector< LengthLorentz5Distance
 A distance in four-dimensional space-time with an explicit invariant time component.
typedef LorentzVector< LengthLorentzPoint
 A point in four-dimensional space-time.
typedef LorentzVector< EnergyLorentzMomentum
 A momentum in four-dimensional space-time.
typedef Lorentz5Vector< EnergyLorentz5Momentum
 A momentum in four-dimensional space-time with an explicit invariant mass component.
typedef Transverse< EnergyTransverseMomentum
 Transverse components of a momentum.
Higher powers of energy.
Even higher powers can be created with similar typedefs.

typedef QTY< 0, 2, 0 >::Type Energy2
typedef QTY< 0, 3, 0 >::Type Energy3
typedef QTY< 0, 4, 0 >::Type Energy4
typedef QTY< 0, 5, 0 >::Type Energy5
typedef QTY< 0, 6, 0 >::Type Energy6
typedef QTY< 0, 7, 0 >::Type Energy7
typedef QTY< 0, 8, 0 >::Type Energy8
typedef QTY< 0, 9, 0 >::Type Energy9
typedef QTY< 0, 10, 0 >::Type Energy10
typedef QTY< 0, 11, 0 >::Type Energy11
typedef QTY< 0, 12, 0 >::Type Energy12
typedef QTY
< 0, 1, 0, 1, 2, 1 >::Type 
SqrtEnergy
typedef QTY
< 0,-1, 0, 1, 2, 1 >::Type 
InvSqrtEnergy
typedef QTY< 0,-1, 0 >::Type InvEnergy
typedef QTY< 0,-2, 0 >::Type InvEnergy2
typedef QTY< 0,-3, 0 >::Type InvEnergy3
typedef QTY< 0,-4, 0 >::Type InvEnergy4
typedef QTY< 0,-5, 0 >::Type InvEnergy5
typedef QTY< 0,-6, 0 >::Type InvEnergy6
typedef QTY< 0,-7, 0 >::Type InvEnergy7
typedef QTY< 0,-8, 0 >::Type InvEnergy8
typedef QTY< 0,-9, 0 >::Type InvEnergy9
typedef QTY< 0,-10, 0 >::Type InvEnergy10
typedef QTY< 0,-11, 0 >::Type InvEnergy11
typedef QTY< 0,-12, 0 >::Type InvEnergy12

Variables

const QTY< 1, 1, 0 >::Type hbarc = 197.326968e-15 * MeV * meter
 Planck's constant times c (PDG 2006 value 197.326968(17) MeV fm).
const QTY< 1, 1, 0 >::Type hbar_Planck = hbarc / 1.0
 Planck's constant (PDG 2006 value 197.326968(17) MeV fm).
Pre-defined basic units.
const Length millimeter = TypeTraits<Length>::baseunit
const Energy MeV = TypeTraits<Energy>::baseunit
const Charge eplus = TypeTraits<Charge>::baseunit
const Energy keV = 1.0e-3 * MeV
const Energy GeV = 1.0e3 * MeV
const Energy TeV = 1.0e6 * MeV
const Energy2 MeV2 = MeV * MeV
const Energy2 GeV2 = GeV * GeV
const InvEnergy InvGeV = 1/GeV
const Length meter = 1.0e3 * millimeter
const Length mm = millimeter
const Length centimeter = 10.0*millimeter
const Length micrometer = 1.0e-3 * millimeter
const Length nanometer = 1.0e-6 * millimeter
const Length picometer = 1.0e-9 * millimeter
const Length femtometer = 1.0e-12 * millimeter
const Area picobarn = 1.0e-40 * meter * meter
const Area nanobarn = 1.0e3 * picobarn
const Area microbarn = 1.0e6 * picobarn
const Area millibarn = 1.0e9 * picobarn
const Area barn = 1.0e12 * picobarn
const Area femtobarn = 1.0e-3 * picobarn


Detailed Description

The Units namespace contains the declaration of a number of classes for variables with dimension.

Currently they are all typedefs of double, but in the future the SIUnits package will be used.

The file Utilities/UnitIO.h defines helper-classes and helper functions to read and write variables with dimensions. As an example, to read and write an energy variable e in units of GeV, use: os << ounit(e, GeV) and is >> iunit(e, GeV)


Typedef Documentation

typedef QTY<1,1,0>::Type ThePEG::Units::AngularMomentum

Angular momentum.

Definition at line 55 of file Unitsystem.h.

typedef QTY<2,0,0>::Type ThePEG::Units::Area

Area will be assumed to be Length$^2$.

Definition at line 61 of file Unitsystem.h.

A direction in three-dimensional euclidean space.

Definition at line 125 of file Unitsystem.h.

A three-dimensional boost vector.

Definition at line 131 of file Unitsystem.h.

typedef QTY<0,0,1>::Type ThePEG::Units::Charge

Charge.

Definition at line 52 of file Unitsystem.h.

Cross section is an area.

Definition at line 67 of file Unitsystem.h.

typedef QTY<2,-4,0>::Type ThePEG::Units::Diff2XSec

CrossSection/Energy4.

Definition at line 110 of file Unitsystem.h.

typedef QTY<2,-2,0>::Type ThePEG::Units::DiffXSec

CrossSection/Energy2.

Definition at line 107 of file Unitsystem.h.

A distance in three-dimensional euclidean space.

Definition at line 122 of file Unitsystem.h.

typedef QTY<0,1,0>::Type ThePEG::Units::Energy

Energy.

Definition at line 34 of file Unitsystem.h.

typedef QTY<2,2,0>::Type ThePEG::Units::Energy2XSec

CrossSection*Energy2.

Definition at line 104 of file Unitsystem.h.

typedef QTY<-2,0,0>::Type ThePEG::Units::InvArea

Inverse Area.

Definition at line 64 of file Unitsystem.h.

typedef QTY<-1,0,0>::Type ThePEG::Units::InvLength

Inverse Length.

Definition at line 46 of file Unitsystem.h.

typedef QTY<1,0,0>::Type ThePEG::Units::Length

Length.

Definition at line 40 of file Unitsystem.h.

A distance in four-dimensional space-time with an explicit invariant time component.

Definition at line 138 of file Unitsystem.h.

A momentum in four-dimensional space-time with an explicit invariant mass component.

Definition at line 148 of file Unitsystem.h.

A distance in four-dimensional space-time.

Definition at line 134 of file Unitsystem.h.

A momentum in four-dimensional space-time.

Definition at line 144 of file Unitsystem.h.

A point in four-dimensional space-time.

Definition at line 141 of file Unitsystem.h.

Mass has the same unit as Energy <=> c == 1.

Definition at line 37 of file Unitsystem.h.

A momentum in three-dimensional euclidean space.

Definition at line 128 of file Unitsystem.h.

A point in three-dimensional euclidean space.

Definition at line 119 of file Unitsystem.h.

typedef Energy2 ThePEG::Units::Scale

Scale is the same as a squared energy.

Definition at line 116 of file Unitsystem.h.

typedef QTY<-1,1,0>::Type ThePEG::Units::Tension

Tension.

Definition at line 58 of file Unitsystem.h.

Time has the same unit as Length.

<=> c == 1.

Definition at line 43 of file Unitsystem.h.

Transverse components of a momentum.

Definition at line 151 of file Unitsystem.h.

typedef double ThePEG::Units::Velocity

Velocities are dimensionless fractions of c.

Definition at line 49 of file Unitsystem.h.


Generated on Thu Apr 29 12:43:34 2010 for ThePEG by  doxygen 1.5.5