JAPAn
Just Another Parity Analyzer
Loading...
Searching...
No Matches
GreenMonster.h
Go to the documentation of this file.
1
2#include <iostream>
3
4//#include "TGClient.h"
5#include "Rtypes.h"
6#include "TString.h"
7//#include "TROOT.h"
8//#include "TStyle.h"
9//#include "TObjectTable.h"
10//#include "TGCanvas.h"
11//#include "TPad.h"
12//#include "TPaveText.h"
13//#include "TGTab.h"
14//#include "TGIcon.h"
15//#include <TExec.h>
16//#include "TGFrame.h"
17//#include "TGMenu.h"
18//#include "TSystem.h"
19//#include "TGLayout.h"
20//#include "TGLabel.h"
21//#include "TGButton.h"
22//#include "TGTextBuffer.h"
23//#include "TGTextEntry.h"
24//#include "TGToolTip.h"
25//#include "TFile.h"
26//#include "TTimer.h"
27//#include "TColor.h"
28//#include "TQObject.h"
29//#include "TRootHelpDialog.h"
30//#include "RQ_OBJECT.h"
31
32#include "cfSock_types.h"
33//#include "../bmw/bmw_cf_commands.h"
34#include "SCAN_cf_commands.h"
35#include "GMSock.h"
36
37#define GM_LOCAL 201
38
39#define GM_BMW_CHANGE 2001
40#define GM_BMW_CHECK 2002
41#define GM_BMW_TEST_ENABLE 2005
42#define GM_BMW_TEST_SET_VALUE 2006
43#define GM_BMW_SET_KILL 2007
44// the relative value of these button id's labels each modulation object
45#define BMW_OBJRADIO1 2101
46#define BMW_OBJRADIO2 2102
47#define BMW_OBJRADIO3 2103
48#define BMW_OBJRADIO4 2104
49#define BMW_OBJRADIO5 2105
50#define BMW_OBJRADIO6 2106
51#define BMW_OBJRADIO7 2107
52#define BMW_OBJRADIO8 2108
53
54#define KILL_SERVER_1 5001
55#define KILL_SERVER_2 5002
56#define KILL_SERVER_3 5003
57#define KILL_SERVER_4 5004
58
59
60#define GM_SCN_CHECK 6002
61#define GM_SCN_SET 6003
62#define SCN_RADIO_CLN 6101
63#define SCN_RADIO_NOT 6102
64#define SCN_RADIO_CLN_BT 0
65#define SCN_RADIO_NOT_BT 1
66#define SCN_INT_CLN 1
67#define SCN_INT_NOT 0
68
70public:
73
74 void CheckScan();
75
76 void Open();
77 void Close();
78
79 void SCNSetStatus(Int_t);
80 void SCNSetValue(Int_t,Int_t);
81
83 switch (statusSCN)
84 {
85 case SCN_INT_CLN:
86 {
87 std::cout << "Scan Status is CLEAN" << std::endl;
88 break;
89 }
90 case SCN_INT_NOT:
91 {
92 std::cout << "Scan Status is NOT_CLEAN" << std::endl;
93 break;
94 }
95 default:
96 std::cout << "ERROR: Unrecognized SCAN status flag" << std::endl;
97 }
98 std::cout << "Scan data 1: " << setpoint1SCN << std::endl;
99 std::cout << "Scan data 2: " << setpoint2SCN << std::endl;
100 }
101
102private:
103 Bool_t fVerbose;
104
105 Bool_t fUseCrate[5];
106 TString* fCrateNames[5];
108
109 // objects for scan tabpage
111
115
116 void SCNUpdateStatus(Int_t);
117 Bool_t SCNCheckStatus();
118 void SCNCheckValues();
119
120};
#define SCN_INT_NOT
#define SCN_INT_CLN
void PrintScanInfo()
void SCNUpdateStatus(Int_t)
void SCNCheckValues()
Int_t fCrateNumbers[5]
void SCNSetStatus(Int_t)
Bool_t SCNCheckStatus()
Bool_t fUseCrate[5]
void SCNSetValue(Int_t, Int_t)
TString * fCrateNames[5]