CMS 3D CMS Logo

Public Member Functions | Private Attributes

Measurement1D Class Reference

#include <Measurement1D.h>

List of all members.

Public Member Functions

double error () const
 Measurement1D (const double &aValue)
 Measurement1D (const double &aValue, const double &aError)
 Measurement1D ()
double significance () const
double value () const
 ~Measurement1D ()

Private Attributes

double theError
double theValue

Detailed Description

A class that combines a value and it's associated uncertainty, or error, together. Provides a more explicit interface than a pair<double,double>. If you don't like the name, propose a better one!

Definition at line 11 of file Measurement1D.h.


Constructor & Destructor Documentation

Measurement1D::Measurement1D ( ) [inline]

Definition at line 16 of file Measurement1D.h.

: theValue(0.) , theError(0.) {};
Measurement1D::Measurement1D ( const double &  aValue) [inline]

Definition at line 18 of file Measurement1D.h.

                                     : 
  theValue(aValue) , theError(0.) {};
Measurement1D::Measurement1D ( const double &  aValue,
const double &  aError 
) [inline]

Definition at line 21 of file Measurement1D.h.

  : theValue(aValue) , theError(aError) {}; 
Measurement1D::~Measurement1D ( ) [inline]

Definition at line 26 of file Measurement1D.h.

{} ;

Member Function Documentation

double Measurement1D::error ( ) const [inline]
double Measurement1D::significance ( ) const [inline]
double Measurement1D::value ( ) const [inline]

Member Data Documentation

double Measurement1D::theError [private]

Definition at line 40 of file Measurement1D.h.

Referenced by error(), and significance().

double Measurement1D::theValue [private]

Definition at line 39 of file Measurement1D.h.

Referenced by significance(), and value().