2022-10-05 14:28:55 -04:00
|
|
|
#ifndef TRIGGER_SUMMARY_H
|
|
|
|
#define TRIGGER_SUMMARY_H
|
|
|
|
|
|
|
|
#include <TQObject.h>
|
|
|
|
#include <RQ_OBJECT.h>
|
|
|
|
#include <TGNumberEntry.h>
|
|
|
|
#include <TGButton.h>
|
|
|
|
#include <TGComboBox.h>
|
|
|
|
#include <TThread.h>
|
|
|
|
#include <TGLabel.h>
|
|
|
|
#include "ClassDigitizer.h"
|
|
|
|
#include "macro.h"
|
|
|
|
|
|
|
|
class TGWindow;
|
|
|
|
class TGMainFrame;
|
|
|
|
|
|
|
|
class TriggerSummary{
|
|
|
|
RQ_OBJECT("TriggerSummary")
|
|
|
|
private:
|
2022-11-02 19:01:06 -04:00
|
|
|
TGTransientFrame * fMain;
|
2022-10-05 14:28:55 -04:00
|
|
|
|
|
|
|
static TGTextEntry * txtTrigger[MaxNBoards][MaxNChannels];
|
2022-10-06 15:49:08 -04:00
|
|
|
static TGTextEntry * txtThresholdValue[MaxNBoards][MaxNChannels];
|
2022-10-05 14:28:55 -04:00
|
|
|
static TGTextEntry * txtThreshold[MaxNBoards][MaxNChannels];
|
2022-11-01 18:38:01 -04:00
|
|
|
static TGCheckButton * cbChannelEnable[MaxNBoards][MaxNChannels];
|
2022-10-05 14:28:55 -04:00
|
|
|
|
|
|
|
TThread * thread;
|
|
|
|
static bool updateFlag;
|
|
|
|
static TGNumberEntry * numUpdateTime;
|
|
|
|
|
2022-10-06 15:49:08 -04:00
|
|
|
static unsigned short value[MaxNBoards][MaxNChannels];
|
2022-11-01 18:38:01 -04:00
|
|
|
static bool onOff[MaxNBoards][MaxNChannels];
|
2022-10-05 14:28:55 -04:00
|
|
|
|
|
|
|
public:
|
2022-11-02 19:01:06 -04:00
|
|
|
TriggerSummary(const TGWindow *p, const TGWindow *main);
|
2022-10-05 14:28:55 -04:00
|
|
|
virtual ~TriggerSummary();
|
2022-11-02 19:01:06 -04:00
|
|
|
|
2022-10-05 14:28:55 -04:00
|
|
|
void CloseWindow() { delete this;}
|
|
|
|
|
|
|
|
static void * UpdateTriggerRate(void *ptr);
|
|
|
|
|
|
|
|
void SetThreshold();
|
2022-11-01 18:38:01 -04:00
|
|
|
//void SetThreshold(int boardID, int ch, unsigned short val) { value[boardID][ch] = val; }
|
|
|
|
void SetChannelEnable();
|
2022-10-05 14:28:55 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|