mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00
76 lines
1.0 KiB
C++
76 lines
1.0 KiB
C++
|
|
|
|
#ifndef CTBSLOWADCS_H
|
|
#define CTBSLOWADCS_H
|
|
#include <TGFrame.h>
|
|
|
|
|
|
//#define NDACS 16
|
|
#define NSLOWADCS 8
|
|
|
|
|
|
|
|
|
|
class TGTextEntry;
|
|
class TGLabel;
|
|
class TGNumberEntry;
|
|
class TGCheckButton;
|
|
class TGTextButton;
|
|
|
|
|
|
|
|
class multiSlsDetector;
|
|
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
class ctbSlowAdc : public TGHorizontalFrame {
|
|
|
|
|
|
protected:
|
|
// TGLabel *dacsLabel;
|
|
// TGNumberEntry *dacsEntry;
|
|
// TGCheckButton *dacsUnit;
|
|
TGLabel *dacsLabel;
|
|
TGLabel *dacsValue;
|
|
int id;
|
|
|
|
multiSlsDetector* myDet;
|
|
public:
|
|
ctbSlowAdc(TGGroupFrame*, int , multiSlsDetector*);
|
|
int getValue();
|
|
|
|
int setLabel(char *tit);
|
|
string getLabel();
|
|
|
|
|
|
|
|
ClassDef(ctbSlowAdc,0)
|
|
};
|
|
|
|
|
|
class ctbSlowAdcs : public TGGroupFrame {
|
|
private:
|
|
|
|
|
|
|
|
ctbSlowAdc *adcs[NSLOWADCS+1];
|
|
|
|
multiSlsDetector* myDet;
|
|
|
|
public:
|
|
ctbSlowAdcs(TGVerticalFrame *page, multiSlsDetector*);
|
|
|
|
int setSlowAdcAlias(string line);
|
|
// int setDacAlias(string line);
|
|
string getSlowAdcAlias();
|
|
string getAdcParameters();
|
|
|
|
void update();
|
|
|
|
ClassDef(ctbSlowAdcs,0)
|
|
};
|
|
|
|
#endif
|
|
|