A general measure with an associated error. More...
#include <Measure.h>
Public Types | |
enum | EData { kKnown = 0, kUnknown = 1, kTentative = 2, kTheo = 3, kAbout = 4 } |
flags that qualify a given data More... | |
Public Member Functions | |
ClassDef (InfoData, 1) | |
rootcint dictionary More... | |
ClassDef (Measure, 1) | |
rootcint dictionary More... | |
ClassDef (Data, 1) | |
rootcint dictionary More... | |
virtual Data_T | Get () const |
get the value, can be overloaded More... | |
virtual Data_T | GetError () const |
return the error on the measured value More... | |
Data_T | GetValue () const |
get the value, cannot be overloaded More... | |
virtual bool | IsData (UShort_t) const |
to get some information about this data More... | |
Measure () | |
Measure (Data_T d, Data_T derr=0) | |
Measure (const Measure &data) | |
virtual Data_T & | operator[] (int i) |
to get/set the value or the error More... | |
virtual void | Set (Data_T data) |
set the measure and its error (default err=0) More... | |
virtual void | Set (Data_T d, Data_T derr) |
virtual void | Set (const char *s) |
set the value, can be overloaded More... | |
virtual void | SetError (Data_T derr) |
set the error of this value More... | |
virtual void | SetInfo (InfoData::EData) |
to set some information about this data More... | |
void | SetValue (Data_T data) |
set the value, cannot be overloaded More... | |
virtual | ~Measure () |
Static Public Member Functions | |
static EData | WhatIs (const char *) |
It deduces from a string the kind of data. More... | |
Protected Attributes | |
Data_T | fError |
UShort_t | fInfo |
Data_T | fValue |
A general measure with an associated error.
A measure is obtained experimentally. It is then a number associated with an error.
This class inherits from InfoData since a measure can be qualify as defined in InfoData.
Use this template class with Double_t or Float_t depending on the precision you need. It requires only a definition of the = operator for any other utilisation (vector of points and associated errors ... etc)