PixieDAQ/pixieDAQ.h

62 lines
1.0 KiB
C
Raw Normal View History

#include <TQObject.h>
#include <RQ_OBJECT.h>
2022-03-15 19:59:36 -04:00
#include <TROOT.h>
#include <TClass.h>
#include <TGClient.h>
#include <TGMenu.h>
#include <TGTextEdit.h>
#include <TThread.h>
2022-03-15 19:59:36 -04:00
#include "Pixie16Class.h"
#include "settingsSummary.h"
class TGWindow;
class TGMainFrame;
class TRootEmbeddedCanvas;
2022-03-15 19:59:36 -04:00
class TGNumberEntry;
class MainWindow{
RQ_OBJECT("MainWindow")
private:
TGMainFrame *fMain;
TRootEmbeddedCanvas *fEcanvas;
2022-03-15 19:59:36 -04:00
TGMenuBar *fMenuBar;
TGPopupMenu *fMenuFile, *fMenuSettings;
TGNumberEntry * modIDEntry, *chEntry;
TGTextEntry * tePath;
TGTextEdit * teLog;
2022-03-15 19:59:36 -04:00
SettingsSummary * mainSettings;
TThread * thread;
2022-03-15 19:59:36 -04:00
public:
MainWindow(const TGWindow *p, UInt_t w, UInt_t h);
virtual ~MainWindow();
2022-03-15 19:59:36 -04:00
void HandleMenu(Int_t id);
void openPixie();
void GetADCTrace();
void GetBaseLine();
void Scope();
void StartRun(); // *SIGNAL*
static void * SaveData(void* ptr ); /// thread
void StopRun();
void LogMsg(TString msg);
void GoodBye();
};