PixieDAQ/settingsSummary.h

86 lines
1.8 KiB
C
Raw Permalink Normal View History

#ifndef SETTINGS_SUMMARY_H
#define SETTINGS_SUMMARY_H
#include <TQObject.h>
2022-03-16 18:46:14 -04:00
#include <TGNumberEntry.h>
#include <TGComboBox.h>
#include <TGLabel.h>
2022-03-15 19:59:36 -04:00
#include "Pixie16Class.h"
#include "global_macro.h"
2022-03-15 19:59:36 -04:00
class TGWindow;
class TGMainFrame;
class SettingsSummary{
private:
TGMainFrame * fMain;
2022-03-15 19:59:36 -04:00
2022-03-16 18:46:14 -04:00
TGNumberEntry * modIDEntry;
TGTextEntry * teFileName;
TString settingFileName;
TGComboBox * cbOnOff[MAXCH] ;
TGComboBox * cbGain[MAXCH] ;
TGComboBox * cbPol[MAXCH] ;
2022-04-01 18:16:37 -04:00
TGComboBox * cbTraceOnOff[MAXCH] ;
2022-03-16 18:46:14 -04:00
TGLabel * lbCh[MAXCH];
2022-03-16 18:46:14 -04:00
TGNumberEntry * neTrigL[MAXCH] ;
TGNumberEntry * neTrigG[MAXCH] ;
TGNumberEntry * neThreshold[MAXCH] ;
TGNumberEntry * neEngL[MAXCH] ;
TGNumberEntry * neEngG[MAXCH] ;
TGNumberEntry * neTau[MAXCH] ;
TGNumberEntry * neTraceLength[MAXCH] ;
TGNumberEntry * neTraceDelay[MAXCH] ;
TGNumberEntry * neVoff[MAXCH] ;
TGNumberEntry * neBL[MAXCH];
2022-03-15 19:59:36 -04:00
Pixie16 * pixie;
2022-03-16 18:46:14 -04:00
Pixel_t red;
Pixel_t black;
2022-03-30 16:09:12 -04:00
2022-03-16 18:46:14 -04:00
int maxCh;
2022-03-30 16:09:12 -04:00
public:
SettingsSummary(const TGWindow *p, UInt_t w, UInt_t h, Pixie16 * pixie);
virtual ~SettingsSummary();
2022-03-16 18:46:14 -04:00
void CloseWindow() { printf("close SettingsSummary window\n"); delete this; }
void GetSettingsFromDigitizer();
2022-03-15 19:59:36 -04:00
2022-03-16 18:46:14 -04:00
void ChangeOnOff(unsigned short ch);
void ChangeGain(unsigned short ch);
void ChangePol(unsigned short ch);
2022-04-01 18:16:37 -04:00
void ChangeTraceOnOff(unsigned short ch);
2022-03-16 18:46:14 -04:00
void ChangeTrigL(unsigned short ch);
void ChangeTrigG(unsigned short ch);
void ChangeThreshold(unsigned short ch);
void ChangeEngL(unsigned short ch);
void ChangeEngG(unsigned short ch);
void ChangeTau(unsigned short ch);
void ChangeTraceLenght(unsigned short ch);
void ChangeTraceDelay(unsigned short ch);
void ChangeVoff(unsigned short ch);
void ChangeBL(unsigned short ch);
2022-03-16 16:13:18 -04:00
2022-03-16 18:46:14 -04:00
void ChangeMod();
void OpenFile();
void SaveSetting();
2022-03-16 16:13:18 -04:00
2022-03-30 16:09:12 -04:00
bool isOpened;
};
#endif