30 #define GW_MEASURE_H Gw_Measure
54 template <
typename Data_T>
class Measure :
public Data <Data_T>
70 virtual void Set(
const char *s)
72 std::istringstream input; input.clear(); TString st = s;
83 st.ReplaceAll(
'~',
' ');
89 st.ReplaceAll(
'(',
' ');
90 st.ReplaceAll(
')',
' ');
96 st.ReplaceAll(
'[',
' ');
97 st.ReplaceAll(
']',
' ');
virtual Data_T GetError() const
return the error on the measured value
static EData WhatIs(const char *)
It deduces from a string the kind of data.
virtual void Set(Data_T data)
set the measure and its error (default err=0)
virtual Data_T & operator[](int i)
to get/set the value or the error
ClassDef(Measure, 1)
rootcint dictionary
template that defines a general Data
virtual void Set(const char *s)
set the value, can be overloaded
Measure(const Measure &data)
Measure(Data_T d, Data_T derr=0)
virtual void Set(Data_T d, Data_T derr)
A general measure with an associated error.
virtual void SetInfo(InfoData::EData)
to set some information about this data
virtual void SetError(Data_T derr)
set the error of this value