thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
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>

Inheritance diagram for LWH::Measurement:

Public Member Functions

 Measurement (double v=0.0, double ep=0.0, double em=0.0)
 Standard constructor.
 
 Measurement (const Measurement &m)
 Copy constructor.
 
Measurementoperator= (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.
 

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

◆ errorMinus()

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

Get the minus error of the IMeasurement.

Returns
The minus error.

Definition at line 76 of file Measurement.h.

◆ errorPlus()

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

Get the plus error of the IMeasurement.

Returns
The plus error.

Definition at line 68 of file Measurement.h.

◆ setErrorMinus()

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

Set the minus error of the IMeasurement.

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

Definition at line 105 of file Measurement.h.

◆ setErrorPlus()

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

Set the plus error of the IMeasurement.

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

Definition at line 95 of file Measurement.h.

◆ setValue()

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

Set the value of the IMeasurement.

Parameters
vThe new value of the IMeasurement.
Returns
false If the value cannot be set.

Definition at line 85 of file Measurement.h.

◆ value()

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

Get the value of the Measurement.

Returns
The value of the Measurement.

Definition at line 60 of file Measurement.h.


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