LWH::Measurement Class Reference

Basic user-level interface class for holding a single "measurement" with positive and negative errors (to allow for asymmetric errors). More...

#include <Measurement.h>

List of all members.

Public Member Functions

 Measurement (double v=0.0, double ep=0.0, double em=0.0)
 Standard constructor.
 Measurement (const Measurement &m)
 Copy constructor.
virtual ~Measurement ()
 Destructor.
double value () const
 Get the value of the Measurement.
double errorPlus () const
 Get the plus error of the IMeasurement.
double errorMinus () const
 Get the minus error of the IMeasurement.
bool setValue (double v)
 Set the value of the IMeasurement.
bool setErrorPlus (double ep)
 Set the plus error of the IMeasurement.
bool setErrorMinus (double em)
 Set the minus error of the IMeasurement.

Private Attributes

double val
 The value.
double errp
 The plus error.
double errm
 The minus error.


Detailed Description

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.


Member Function Documentation

double LWH::Measurement::value (  )  const [inline]

Get the value of the Measurement.

Returns:
The value of the Measurement.

Definition at line 55 of file Measurement.h.

References val.

double LWH::Measurement::errorPlus (  )  const [inline]

Get the plus error of the IMeasurement.

Returns:
The plus error.

Definition at line 63 of file Measurement.h.

References errp.

double LWH::Measurement::errorMinus (  )  const [inline]

Get the minus error of the IMeasurement.

Returns:
The minus error.

Definition at line 71 of file Measurement.h.

References errm.

bool LWH::Measurement::setValue ( double  v  )  [inline]

Set the value of the IMeasurement.

Parameters:
v The new value of the IMeasurement.
Returns:
false If the value cannot be set.

Definition at line 80 of file Measurement.h.

References val.

bool LWH::Measurement::setErrorPlus ( double  ep  )  [inline]

Set the plus error of the IMeasurement.

Parameters:
ep The new plus error of the IMeasurement.
Returns:
false If the error cannot be set or it is negative.

Definition at line 90 of file Measurement.h.

References errp.

bool LWH::Measurement::setErrorMinus ( double  em  )  [inline]

Set the minus error of the IMeasurement.

Parameters:
em The new minus error of the IMeasurement.
Returns:
false If the error cannot be set or it is negative.

Definition at line 100 of file Measurement.h.

References errm.


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

Generated on Thu Apr 29 12:42:56 2010 for ThePEG by  doxygen 1.5.5