OUnitErr is used to write out unitful numbers with an error estimate on a standard ostream. More...
#include <UnitIO.h>
Public Member Functions | |
OUnitErr (const T &t, const T &dt, const UT &u) | |
Constructor given an object to be written assuming the given unit. | |
Public Attributes | |
double | x |
The number to be written. | |
double | dx |
The estimated error of the number to be written. | |
OUnitErr is used to write out unitful numbers with an error estimate on a standard ostream.
using the helper function ouniterr an energy e
with an error estimate de
can be written out as eg. cout << ouniterr(e, de,
GeV);
. The result will be presented in scientific format (with the exponent divisible by three) with the relevant number of significant digits with a single digit in parenthesis indicating the error in the least significant digit, eg. 1.23(2)e+03
.
|
inline |
double ThePEG::OUnitErr< T, UT >::dx |
double ThePEG::OUnitErr< T, UT >::x |