#ifdef __CINT__ class pthread_cond_t; class pthread_mutex_t; pthread_mutex_t PTHREAD_MUTEX_INITIALIZER; #endif #ifndef __TestBenchGUI__ #define __TestBenchGUI__ #include #include "TApplication.h" #include "TGraph.h" #include "TMultiGraph.h" #include "TH2I.h" #include "TObjString.h" #include "TList.h" #include "TGClient.h" #include "TTimer.h" #include "TGComboBox.h" #include "TGPicture.h" #include "TGTextEntry.h" #include "TVirtualStreamerInfo.h" #include "TGFileDialog.h" #include "TGFrame.h" #include "TGCanvas.h" #include "TGButton.h" #include "TGLabel.h" #include "TRootCanvas.h" #include "TGNumberEntry.h" #include "TGListTree.h" #include "TRootEmbeddedCanvas.h" #include "TCanvas.h" #include "TGLabel.h" #include "RQ_OBJECT.h" #include "TQObject.h" #include "VMEUtilities.h" //class VMEUtilities; #include "Riostream.h" using namespace std; class TestBenchGUI :public TGMainFrame{ public: TestBenchGUI(const TGWindow *); virtual ~TestBenchGUI(){;} struct SC{ int slot; int channel; }; void PowerOnADCs(); void PowerOffADCs(); void TakePulserData(); void DoClose(); void DoVMESettings(); void DoSetDAC(); void DoSetDACDefaults(); void DoCheckedEntry(TObject*, Int_t); //void GetChecked(TGListTreeItem *, bool); protected: void PlotWaveforms(); private: // We will make all frames members of the class TGHorizontalFrame *fMainFrame, *fBitsFrame1, *fBitsFrame2; TGVerticalFrame *fCanvasFrame, *fOptionsFrame; TGCanvas *fChannelSelectFrame; TGGroupFrame *fADCOptionsFrame, *fPulserOptionsFrame; TGNumberEntry *fADCSampleInput, *fWindowOffsetInput, *fPulserOffsetInput, *fPulseHeightInput, *fReadoutThresholdInput, *fDACInput; TGListTree *listTree; vector chList; TMultiGraph *rawData; TRootEmbeddedCanvas *fRawDataFrame; bool VMEOn; VMEUtilities *VME; ClassDef(TestBenchGUI,1); }; #endif