#ifndef CTBDACS_H #define CTBDACS_H #include #define NDACS 18 //#define NDACS 16 class TGTextEntry; class TGLabel; class TGNumberEntry; class TGCheckButton; class multiSlsDetector; #include using namespace std; class ctbDac : public TGHorizontalFrame { protected: // TGLabel *dacsLabel; TGNumberEntry *dacsEntry; TGCheckButton *dacsUnit; TGCheckButton *dacsLabel; TGLabel *dacsValue; int id; multiSlsDetector* myDet; public: ctbDac(TGGroupFrame*, int , multiSlsDetector*); void setValue(); void setValue(Long_t); int getValue(); void setOn(Bool_t); int setLabel(char *tit, int mv); string getLabel(); ClassDef(ctbDac,0) }; class ctbDacs : public TGGroupFrame { private: ctbDac *dacs[NDACS+2]; multiSlsDetector* myDet; public: ctbDacs(TGVerticalFrame *page, multiSlsDetector*); int setDacAlias(string line); // int setDacAlias(string line); string getDacAlias(); string getDacParameters(); void update(); ClassDef(ctbDacs,0) }; #endif