30 #ifndef TMUSRRUNHEADER_H 31 #define TMUSRRUNHEADER_H 38 #include <TObjString.h> 39 #include <TObjArray.h> 42 #define MRH_UNDEFINED -9.99e99 44 #define MRH_DOUBLE_PREC 6 49 #define MRH_TMUSR_RUN_PHYSICAL_QUANTITY 3 50 #define MRH_TSTRING_VECTOR 4 51 #define MRH_INT_VECTOR 5 52 #define MRH_DOUBLE_VECTOR 6 85 TMusrRunPhysicalQuantity(TString label, Double_t demand, Double_t value, Double_t error, TString unit, TString description = TString(
"n/a"));
86 TMusrRunPhysicalQuantity(TString label, Double_t demand, Double_t value, TString unit, TString description = TString(
"n/a"));
97 virtual void Set(TString label, Double_t demand, Double_t value, Double_t error, TString unit, TString description = TString(
"n/a"));
98 virtual void Set(TString label, Double_t demand, Double_t value, TString unit, TString description = TString(
"n/a"));
99 virtual void Set(TString label, Double_t value, TString unit, TString description = TString(
"n/a"));
138 virtual void Get(TString pathName, TString &value, Bool_t &ok);
139 virtual void Get(TString pathName, Int_t &value, Bool_t &ok);
140 virtual void Get(TString pathName, Double_t &value, Bool_t &ok);
143 virtual void Get(TString pathName,
TIntVector &value, Bool_t &ok);
148 virtual void Set(TString pathName, TString value);
149 virtual void Set(TString pathName, Int_t value);
150 virtual void Set(TString pathName, Double_t value);
174 virtual void Init(TString str=
"n/a");
179 virtual void SplitPathName(TString pathName, TString &path, TString &name);
181 virtual TString
GetLabel(TString str);
183 virtual TString
GetType(TString str);
185 virtual bool UpdateFolder(TObject *treeObj, TString path);
186 virtual TObject*
FindObject(TObject *treeObj, TString path);
189 virtual bool RemoveFirst(TString &str,
const char splitter);
190 virtual TString
GetFirst(TString &str,
const char splitter);
195 #endif // TMUSRRUNHEADER_H
virtual TString GetPathName()
virtual void SetDemand(Double_t val)
Double_t fError
estimated error (standard deviation) of the measured value
virtual ~TMusrRunObject()
virtual void SetValue(T value)
TString fDescription
a more detailed description of the physical quantity
virtual Double_t GetValue() const
virtual TString GetType()
virtual void SetError(Double_t err)
TMusrRunPhysicalQuantity()
virtual TString GetDescription() const
virtual ~TMusrRunPhysicalQuantity()
TString fUnit
unit of the physical quantity
virtual void SetValue(Double_t val)
virtual void SetUnit(TString &unit)
virtual TString GetUnit() const
virtual void SetLabel(const char *label)
Double_t fValue
measured value of the physical quantity
virtual Double_t GetDemand() const
virtual TString GetLabel() const
virtual void Set(TString label, Double_t demand, Double_t value, Double_t error, TString unit, TString description=TString("n/a"))
virtual Double_t GetError() const
TMusrRunObject(TString pathName, TString type, T value)
virtual void SetDescription(const char *str)
virtual void SetDescription(TString &str)
virtual void SetPathName(TString pathName)
TString fPathName
path name of the variable, e.g. 'RunInfo/Run Number'
virtual void SetType(TString type)
TString fLabel
property label, like ’Sample Temperature’ etc.
virtual void SetUnit(const char *unit)
Double_t fDemand
demand value of the physical quantity, e.g. temperature setpoint
virtual void SetLabel(TString &label)
TString fType
type of value, e.g. TString, or Int_t, etc.