ThePEG
2.2.1
|
Basic user-level interface class for holding a single "measurement" with positive and negative errors (to allow for asymmetric errors). More...
#include <Measurement.h>
Public Member Functions | |
Measurement (double v=0.0, double ep=0.0, double em=0.0) | |
Standard constructor. | |
Measurement (const Measurement &m) | |
Copy constructor. | |
Measurement & | operator= (const Measurement &)=default |
Default assignment operator (to avoid compiler warnings). | |
virtual | ~Measurement () |
Destructor. | |
double | value () const |
Get the value of the Measurement. More... | |
double | errorPlus () const |
Get the plus error of the IMeasurement. More... | |
double | errorMinus () const |
Get the minus error of the IMeasurement. More... | |
bool | setValue (double v) |
Set the value of the IMeasurement. More... | |
bool | setErrorPlus (double ep) |
Set the plus error of the IMeasurement. More... | |
bool | setErrorMinus (double em) |
Set the minus error of the IMeasurement. More... | |
Private Attributes | |
double | val |
The value. | |
double | errp |
The plus error. | |
double | errm |
The minus error. | |
Basic user-level interface class for holding a single "measurement" with positive and negative errors (to allow for asymmetric errors).
"IMeasurement" = "value" + "errorPlus" - "errorMinus"
Definition at line 30 of file Measurement.h.
|
inline |
Get the minus error of the IMeasurement.
Definition at line 76 of file Measurement.h.
|
inline |
Get the plus error of the IMeasurement.
Definition at line 68 of file Measurement.h.
|
inline |
Set the minus error of the IMeasurement.
em | The new minus error of the IMeasurement. |
Definition at line 105 of file Measurement.h.
|
inline |
Set the plus error of the IMeasurement.
ep | The new plus error of the IMeasurement. |
Definition at line 95 of file Measurement.h.
|
inline |
Set the value of the IMeasurement.
v | The new value of the IMeasurement. |
Definition at line 85 of file Measurement.h.
|
inline |
Get the value of the Measurement.
Definition at line 60 of file Measurement.h.