#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. |
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
.
Definition at line 152 of file UnitIO.h.
ThePEG::OUnitErr< T, UT >::OUnitErr | ( | const T & | t, | |
const T & | dt, | |||
const UT & | u | |||
) | [inline] |
double ThePEG::OUnitErr< T, UT >::x |
double ThePEG::OUnitErr< T, UT >::dx |