30 #ifndef _PTEMPCALIBGUI_H_
31 #define _PTEMPCALIBGUI_H_
37 #include <RQ_OBJECT.h>
42 #include <TGTextEntry.h>
44 #include <TGComboBox.h>
45 #include <TGNumberEntry.h>
50 #include <TGraphErrors.h>
53 #define TCG_HEIGHT 420
55 #define TCG_NO_OF_RAW_DATA_CH 10
60 eBH1Flow,
eChA,
eChB,
eChC,
eChC1,
eChC2,
eChC3,
eChC4,
eChD1,
eChD2,
eChD3,
eChD4,
eChD5};
71 virtual void SetLakeShore(
const std::string lakeShore) { fLakeShore = lakeShore; }
77 virtual TString GetRawDataCh(UInt_t idx);
78 virtual Int_t MapChNo(UInt_t chNo);
79 virtual UInt_t GetRawDataSensorType(UInt_t idx);
80 virtual UInt_t
GetSize() {
return fDateTime.size(); }
82 virtual UInt_t GetTime(UInt_t idx);
83 virtual Double_t GetTempMeasured(UInt_t idx);
84 virtual Double_t GetPressure(UInt_t idx);
85 virtual Double_t GetHeaterOutput(UInt_t idx);
86 virtual Double_t GetSetPointTemp(UInt_t idx);
87 virtual Double_t GetHeaterRange(UInt_t idx);
88 virtual Double_t GetBH1Flow(UInt_t idx);
89 virtual Double_t GetRawData(UInt_t ch, UInt_t idx);
95 virtual void SetCtrlCh(
const TString &str);
96 virtual void SetRawDataCh(
const TString &str, UInt_t idx);
97 virtual void SetRawDataSensorType(UInt_t type, UInt_t idx);
99 virtual void AddDateTime(TDatime *dt);
100 virtual void AddTempMeasured(Double_t temp);
101 virtual void AddPressure(Double_t pressure);
102 virtual void AddHeaterOutput(Double_t heaterOutput);
103 virtual void AddSetPointTemp(Double_t setPoint);
104 virtual void AddHeaterRange(Double_t heaterRange);
105 virtual void AddBH1Flow(Double_t bh1Flow);
106 virtual void AddRawData(Double_t data, UInt_t ch);
136 RQ_OBJECT(
"PDrawRawData")
150 virtual TString GetUnits(UInt_t idx);
158 RQ_OBJECT(
"PDrawMeanRawData")
162 vector<Double_t> &temp, vector<Double_t> &errTemp,
163 vector<Double_t> &data, vector<Double_t> &errData,
180 RQ_OBJECT(
"PCalibData")
196 virtual Double_t GetMeasured(UInt_t idx);
198 virtual Double_t GetTemp(UInt_t idx);
199 virtual Double_t GetTemp(Double_t sensorValue);
201 virtual void SetValid(Bool_t valid) { fValid = valid; }
204 virtual void SetDataFormat(UInt_t ival);
206 virtual void SetTempCoeff(UInt_t ival);
208 virtual void AddMeasured(Double_t dval) { fMeasured.push_back(dval); }
209 virtual void AddTemp(Double_t dval) { fTemp.push_back(dval); }
229 RQ_OBJECT(
"PDrawCalibData")
247 RQ_OBJECT(
"PSensorInfo")
253 virtual Int_t
GetCh() {
return fCh->GetSelected(); }
255 virtual Int_t GetDataFormat();
257 virtual TString
GetSerialNo() {
return fSerialNo->GetDisplayText(); }
260 virtual void TypeChanged(Int_t);
281 RQ_OBJECT(
"PTempCalibSenors")
287 virtual TGFrame *
GetFrame()
const {
return fFrame; }
288 virtual void SetCanvas(TGCanvas *canvas);
291 virtual Int_t GetCh(UInt_t sensorIdx);
292 virtual Int_t GetSensorType(UInt_t sensorIdx);
293 virtual Int_t GetDataFormat(UInt_t sensorIdx);
294 virtual TString GetSensorName(UInt_t sensorIdx);
295 virtual TString GetSerialNo(UInt_t sensorIdx);
298 virtual void SetNoOfSensors(Long_t);
318 RQ_OBJECT(
"PTempCalibGui")
321 PTempCalibGui(
const TGWindow *p, UInt_t w, UInt_t h,
const std::string lakeShore);
325 virtual void CloseWindow();
326 virtual void DoBrowse();
327 virtual void DoDrawRawData();
328 virtual void DoCalibration();
329 virtual void DoDrawWithErrors();
330 virtual void DoDrawCalibData();
331 virtual void DoTabSelected(Int_t
id);
333 virtual void NoOfThermoCalibChanged(Long_t);
370 virtual void LoadRawData(
const char *filename);
371 virtual UInt_t UpdateHeaderInfo(vector<TString> &rawData, UInt_t idx);
373 virtual void LoadCalibData(
const char *filename);
378 #endif // _PTEMPCALIBGUI_H_
TGTextButton * fTab2ExitButton
virtual void SetNoOfPoints(UInt_t ival)
virtual Int_t GetSensorType()
virtual TGFrame * GetFrame() const
TGTextEntry * fTab2SerialNoCalibThermo
virtual Double_t GetSetPointLimit()
TGTextButton * fTab3ExitButton
virtual UInt_t GetRawDataReadingOffset()
virtual TString GetSensorModel()
virtual void SetValid(Bool_t valid)
virtual UInt_t GetTempCoeff()
TGTextButton * fTab3DrawButton
virtual TString GetCtrlCh()
TGTextEntry * fTab1FileName
virtual UInt_t GetNoOfSensors()
vector< Double_t > fPressure
vector< Double_t > fTempMeasured
virtual void SetLakeShore(const std::string lakeShore)
TGCanvas * fTempCalibSensorsCanvas
virtual void SetNoOfEntries(UInt_t val)
vector< vector< Double_t > > fRawData
virtual UInt_t GetTempSize()
virtual void AddMeasured(Double_t dval)
virtual void SetStartDateTime(const char *dateTime)
vector< TDatime * > fDateTime
TGTextButton * fTab2BrowseButton
PTempCalibSensors * fTempCalibSensorsContainer
TGComboBox * fTab1YComboBox
TGTextEntry * fTab3FileName
virtual void SetSerialNo(TString &str)
virtual void SetSensorModel(TString &str)
TGComboBox * fTab2ChannelCalibThermoComboBox
virtual void SetSetPointLimit(Double_t dval)
TGTextButton * fTab1DrawButton
UInt_t fRawDataReadingOffset
virtual TString GetSerialNo()
TGTextButton * fTab1BrowseButton
vector< Double_t > fBH1Flow
virtual UInt_t GetNoOfEntries()
virtual Bool_t IsDataPresent()
TGTextEntry * fTab1StartTime
virtual UInt_t GetStartTime()
TGNumberEntry * fDrawDataNo
virtual TString GetSensorName()
vector< TGGroupFrame * > fCalibSensorFrame
virtual UInt_t GetDataFormat()
vector< Double_t > fHeaterRange
TGNumberEntry * fNoThermoForCalib
vector< PSensorInfo * > fCalibSensorInfo
TGCompositeFrame * fFrame
TGLabel * fDataFormatLabel
UInt_t fNoOfRawDataReadings
vector< Double_t > fSetPointTemp
TGComboBox * fTab1XComboBox
virtual UInt_t GetMeasuredSize()
virtual void SetDataPresent(Bool_t bval)
virtual UInt_t GetNoOfRawDataReadings()
TGTextButton * fTab2DrawButton
TGTextButton * fTab3BrowseButton
TGTextButton * fTab1ExitButton
virtual void SetNoOfRawDataReadings(UInt_t val)
TGTextButton * fTab2CalibButton
vector< Double_t > fHeaterOutput
virtual void SetRawDataReadingOffset(UInt_t val)
virtual UInt_t GetNoOfPoints()
#define TCG_NO_OF_RAW_DATA_CH
vector< Double_t > fMeasured
TGHorizontalFrame * fFrame
virtual TString GetSerialNo()
virtual void AddTemp(Double_t dval)