FSUDAQ/DAQ/triggerSummary.h

50 lines
1.2 KiB
C
Raw Permalink Normal View History

#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"
#include "influxdb.h"
class TGWindow;
class TGMainFrame;
class TriggerSummary{
RQ_OBJECT("TriggerSummary")
private:
TGTransientFrame * fMain;
static TGTextEntry * txtTrigger[MaxNBoards][MaxNChannels];
2022-10-06 15:49:08 -04:00
static TGTextEntry * txtThresholdValue[MaxNBoards][MaxNChannels];
static TGTextEntry * txtThreshold[MaxNBoards][MaxNChannels];
static TGCheckButton * cbChannelEnable[MaxNBoards][MaxNChannels];
TThread * thread;
static bool updateFlag;
static TGNumberEntry * numUpdateTime;
2022-10-06 15:49:08 -04:00
static unsigned short value[MaxNBoards][MaxNChannels];
static bool onOff[MaxNBoards][MaxNChannels];
public:
TriggerSummary(const TGWindow *p, const TGWindow *main);
virtual ~TriggerSummary();
void CloseWindow() { delete this;}
static void * UpdateTriggerRate(void *ptr);
void SetThreshold();
//void SetThreshold(int boardID, int ch, unsigned short val) { value[boardID][ch] = val; }
void SetChannelEnable();
};
#endif