PixieDAQ/scalarPanel.h
2022-03-30 16:09:12 -04:00

46 lines
719 B
C++

#ifndef SCALAR_PANEL_H
#define SCALAR_PANEL_H
#include <TQObject.h>
#include <TThread.h>
#include <TGNumberEntry.h>
#include <TGComboBox.h>
#include <TGLabel.h>
#include "Pixie16Class.h"
class TGWindow;
class TGMainFrame;
#define MAXCH 16
#define MAXMOD 13
class ScalarPanel{
private:
TGMainFrame * fMain;
static int nMod;
static Pixie16 * pixie;
static bool updateFlag;
TThread * thread;
public:
ScalarPanel(const TGWindow *p, UInt_t w, UInt_t h, Pixie16 * pixie);
virtual ~ScalarPanel();
static void * UpdateScalar(void * ptr);
void CloseWindow() { printf("close window\n"); delete this; }
bool isOpened;
static TGTextEntry * teRate[MAXMOD][MAXCH];
};
#endif