Low-Energy Muon (LEM) Experiment  1.1.0
PTempCalibGui Class Reference

#include <PTempCalibGui.h>

Inheritance diagram for PTempCalibGui:
Collaboration diagram for PTempCalibGui:

Public Member Functions

 PTempCalibGui (const TGWindow *p, UInt_t w, UInt_t h, const std::string lakeShore)
 
virtual ~PTempCalibGui ()
 
virtual void CloseWindow ()
 
virtual void DoBrowse ()
 
virtual void DoDrawRawData ()
 
virtual void DoCalibration ()
 
virtual void DoDrawWithErrors ()
 
virtual void DoDrawCalibData ()
 
virtual void DoTabSelected (Int_t id)
 
virtual void NoOfThermoCalibChanged (Long_t)
 

Private Member Functions

virtual void LoadRawData (const char *filename)
 
virtual UInt_t UpdateHeaderInfo (vector< TString > &rawData, UInt_t idx)
 
virtual void LoadCalibData (const char *filename)
 

Private Attributes

std::string fLakeShore
 
TGMainFrame * fMain
 
TGHorizontalFrame * fFrame
 
TGTab * fTab
 
TGTextEntry * fTab1FileName
 
TGTextButton * fTab1BrowseButton
 
TGTextEntry * fTab1StartTime
 
TGComboBox * fTab1XComboBox
 
TGComboBox * fTab1YComboBox
 
TGTextButton * fTab1DrawButton
 
TGTextButton * fTab1ExitButton
 
TGComboBox * fTab2ChannelCalibThermoComboBox
 
TGTextEntry * fTab2SerialNoCalibThermo
 
TGTextButton * fTab2BrowseButton
 
TGNumberEntry * fNoThermoForCalib
 
TGNumberEntry * fDrawDataNo
 
TGCanvas * fTempCalibSensorsCanvas
 
PTempCalibSensorsfTempCalibSensorsContainer
 
TGTextButton * fTab2CalibButton
 
TGTextButton * fTab2DrawButton
 
TGTextButton * fTab2ExitButton
 
TGTextEntry * fTab3FileName
 
TGTextButton * fTab3BrowseButton
 
TGTextButton * fTab3DrawButton
 
TGTextButton * fTab3ExitButton
 
PRawData fRawData
 
PCalibData fCalibData
 

Detailed Description

Definition at line 316 of file PTempCalibGui.h.

Constructor & Destructor Documentation

PTempCalibGui::PTempCalibGui ( const TGWindow *  p,
UInt_t  w,
UInt_t  h,
const std::string  lakeShore 
)

Main temperature calibration GUI.

Parameters
ppointer to underlaying ROOT system.
wwidth in pixels
hheight in pixels

Definition at line 1619 of file PTempCalibGui.cpp.

References PTempCalibSensors::SetCanvas(), TCG_HEIGHT, and TCG_WIDTH.

PTempCalibGui::~PTempCalibGui ( )
virtual

Destructor

Definition at line 1934 of file PTempCalibGui.cpp.

Member Function Documentation

void PTempCalibGui::CloseWindow ( )
virtual

SLOT, called when the Exit button is pressed are the window is closed. Terminates the application.

Definition at line 1946 of file PTempCalibGui.cpp.

void PTempCalibGui::DoBrowse ( )
virtual

Opens a file selection dialog. Called by the Browse buttons in all the tabs. The selected file names are than transfered to the corresponding text fields.

Definition at line 1960 of file PTempCalibGui.cpp.

void PTempCalibGui::DoCalibration ( )
virtual

Based on the input parameters of the Raw Data tab and the Calibrate tab the calibration is carried out. It generate output files with names: 'Sensor Name'.340.

Definition at line 2181 of file PTempCalibGui.cpp.

References TCG_NO_OF_RAW_DATA_CH.

void PTempCalibGui::DoDrawCalibData ( )
virtual

SLOT, called when the user is pressing the Draw button in the Plot tab. It plots the calibration data originating from a LakeShore like calibration file (e.g. LT2CF1.340).

Definition at line 2651 of file PTempCalibGui.cpp.

References PDrawCalibData::Show().

void PTempCalibGui::DoDrawRawData ( )
virtual

Called when the user is pressing the Draw button in the 'Raw Data' tab. Plots x versus y, where x (y) are values from the RawVoltageOutput.dat file.

Definition at line 2000 of file PTempCalibGui.cpp.

References eBH1Flow, eChA, eChB, eChC, eChC1, eChC2, eChC3, eChC4, eChD1, eChD2, eChD3, eChD4, eChD5, eDateTime, eEmpty, eHeaterOutput, eHeaterRange, ePressure, eSetPointTemp, eTempMeasured, and PDrawRawData::Show().

void PTempCalibGui::DoDrawWithErrors ( )
virtual

SLOT, called when the user presses the Draw button in the Calibration tab. It plots the averaged RawVoltageOutput.dat file data set in which typically 10 raw data readings are averaged (sensor reading and temperature reading). The error bar are estimates from calculating the standard deviations.

Definition at line 2477 of file PTempCalibGui.cpp.

References PDrawMeanRawData::Show().

void PTempCalibGui::DoTabSelected ( Int_t  id)
virtual

SLOT, called when the main tab is changed. It emits the SIGNAL NoOfThermoCalibChanged(0).

Parameters
idthe id of the current tab.

Definition at line 2666 of file PTempCalibGui.cpp.

void PTempCalibGui::LoadCalibData ( const char *  filename)
privatevirtual

Loads a LakeShore like data file. Since we are using mainly LakeShore 340's, it will have an extension '.340'. For the structure of these files see the LakeShore documentation.

Parameters
filenameof the LakeShore like calibration data file.

Definition at line 3027 of file PTempCalibGui.cpp.

References TCG_NO_OF_RAW_DATA_CH.

void PTempCalibGui::LoadRawData ( const char *  filename)
privatevirtual

Reads and parses the RawVoltageOutput.dat file.

Parameters
filenameof the RawVoltageOutput.dat file.

Definition at line 2693 of file PTempCalibGui.cpp.

References TCG_NO_OF_RAW_DATA_CH.

void PTempCalibGui::NoOfThermoCalibChanged ( Long_t  val)
virtual

SLOT, when called it emits the SIGNAL NoOfThermoCalibChanged notifing the reciver what is the current number.

Parameters
valdummy variable

Definition at line 2680 of file PTempCalibGui.cpp.

UInt_t PTempCalibGui::UpdateHeaderInfo ( vector< TString > &  rawData,
UInt_t  idx 
)
privatevirtual

Parses header informations of the RawVoltageOutput.dat.dat file and stores them in fRawData.

Parameters
rawDatavector keeping the RawVoltageOutput.dat.dat file content
idxindex from which to parse.

Definition at line 2897 of file PTempCalibGui.cpp.

References TCG_NO_OF_RAW_DATA_CH.

Field Documentation

PCalibData PTempCalibGui::fCalibData
private

Definition at line 368 of file PTempCalibGui.h.

TGNumberEntry* PTempCalibGui::fDrawDataNo
private

Definition at line 355 of file PTempCalibGui.h.

TGHorizontalFrame* PTempCalibGui::fFrame
private

Definition at line 339 of file PTempCalibGui.h.

std::string PTempCalibGui::fLakeShore
private

Definition at line 336 of file PTempCalibGui.h.

TGMainFrame* PTempCalibGui::fMain
private

Definition at line 338 of file PTempCalibGui.h.

TGNumberEntry* PTempCalibGui::fNoThermoForCalib
private

Definition at line 354 of file PTempCalibGui.h.

PRawData PTempCalibGui::fRawData
private

Definition at line 367 of file PTempCalibGui.h.

TGTab* PTempCalibGui::fTab
private

Definition at line 340 of file PTempCalibGui.h.

TGTextButton* PTempCalibGui::fTab1BrowseButton
private

Definition at line 343 of file PTempCalibGui.h.

TGTextButton* PTempCalibGui::fTab1DrawButton
private

Definition at line 347 of file PTempCalibGui.h.

TGTextButton* PTempCalibGui::fTab1ExitButton
private

Definition at line 348 of file PTempCalibGui.h.

TGTextEntry* PTempCalibGui::fTab1FileName
private

Definition at line 342 of file PTempCalibGui.h.

TGTextEntry* PTempCalibGui::fTab1StartTime
private

Definition at line 344 of file PTempCalibGui.h.

TGComboBox* PTempCalibGui::fTab1XComboBox
private

Definition at line 345 of file PTempCalibGui.h.

TGComboBox* PTempCalibGui::fTab1YComboBox
private

Definition at line 346 of file PTempCalibGui.h.

TGTextButton* PTempCalibGui::fTab2BrowseButton
private

Definition at line 353 of file PTempCalibGui.h.

TGTextButton* PTempCalibGui::fTab2CalibButton
private

Definition at line 358 of file PTempCalibGui.h.

TGComboBox* PTempCalibGui::fTab2ChannelCalibThermoComboBox
private

Definition at line 351 of file PTempCalibGui.h.

TGTextButton* PTempCalibGui::fTab2DrawButton
private

Definition at line 359 of file PTempCalibGui.h.

TGTextButton* PTempCalibGui::fTab2ExitButton
private

Definition at line 360 of file PTempCalibGui.h.

TGTextEntry* PTempCalibGui::fTab2SerialNoCalibThermo
private

Definition at line 352 of file PTempCalibGui.h.

TGTextButton* PTempCalibGui::fTab3BrowseButton
private

Definition at line 363 of file PTempCalibGui.h.

TGTextButton* PTempCalibGui::fTab3DrawButton
private

Definition at line 364 of file PTempCalibGui.h.

TGTextButton* PTempCalibGui::fTab3ExitButton
private

Definition at line 365 of file PTempCalibGui.h.

TGTextEntry* PTempCalibGui::fTab3FileName
private

Definition at line 362 of file PTempCalibGui.h.

TGCanvas* PTempCalibGui::fTempCalibSensorsCanvas
private

Definition at line 356 of file PTempCalibGui.h.

PTempCalibSensors* PTempCalibGui::fTempCalibSensorsContainer
private

Definition at line 357 of file PTempCalibGui.h.


The documentation for this class was generated from the following files: