thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
ThePEG::Qty< L, E, T > Class Template Reference

This template class allows the compiler to check calculations with physical quantities for dimensional correctness. More...

#include <PhysicalQty.h>

Inheritance diagram for ThePEG::Qty< L, E, T >:

Detailed Description

template<typename L, typename E, typename T>
class ThePEG::Qty< L, E, T >

This template class allows the compiler to check calculations with physical quantities for dimensional correctness.

A quantity can be composed of arbitrary fractional powers of length L, energy E and charge Q. Commonly used quantities should be typedef'ed (see Units.h).

Some member functions can break dimensional consistency if the user is not careful; these are marked explicitly.

Do not use this class directly in ThePEG, use the pre-defined quantities from Units.h or the wrapper in Phys_Qty.h instead.

Definition at line 52 of file PhysicalQty.h.


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