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
69
class
GreenMonster
{
70
public
:
71
GreenMonster
();
72
~GreenMonster
();
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
82
void
PrintScanInfo
(){
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
102
private
:
103
Bool_t
fVerbose
;
104
105
Bool_t
fUseCrate
[5];
106
TString*
fCrateNames
[5];
107
Int_t
fCrateNumbers
[5];
108
109
// objects for scan tabpage
110
Int_t
fSCN_TABID
;
111
112
Int_t
statusSCN
;
113
Int_t
setpoint1SCN
;
114
Int_t
setpoint2SCN
;
115
116
void
SCNUpdateStatus
(Int_t);
117
Bool_t
SCNCheckStatus
();
118
void
SCNCheckValues
();
119
120
};
SCN_INT_NOT
#define SCN_INT_NOT
Definition
GreenMonster.h:67
SCN_INT_CLN
#define SCN_INT_CLN
Definition
GreenMonster.h:66
GMSock.h
cfSock_types.h
SCAN_cf_commands.h
GreenMonster::CheckScan
void CheckScan()
Definition
GreenMonster.cc:43
GreenMonster::fSCN_TABID
Int_t fSCN_TABID
Definition
GreenMonster.h:110
GreenMonster::GreenMonster
GreenMonster()
Definition
GreenMonster.cc:6
GreenMonster::PrintScanInfo
void PrintScanInfo()
Definition
GreenMonster.h:82
GreenMonster::SCNUpdateStatus
void SCNUpdateStatus(Int_t)
Definition
GreenMonster.cc:50
GreenMonster::SCNCheckValues
void SCNCheckValues()
Definition
GreenMonster.cc:164
GreenMonster::fCrateNumbers
Int_t fCrateNumbers[5]
Definition
GreenMonster.h:107
GreenMonster::SCNSetStatus
void SCNSetStatus(Int_t)
Definition
GreenMonster.cc:108
GreenMonster::SCNCheckStatus
Bool_t SCNCheckStatus()
Definition
GreenMonster.cc:75
GreenMonster::setpoint1SCN
Int_t setpoint1SCN
Definition
GreenMonster.h:113
GreenMonster::fUseCrate
Bool_t fUseCrate[5]
Definition
GreenMonster.h:105
GreenMonster::Close
void Close()
Definition
GreenMonster.cc:39
GreenMonster::~GreenMonster
~GreenMonster()
Definition
GreenMonster.cc:32
GreenMonster::setpoint2SCN
Int_t setpoint2SCN
Definition
GreenMonster.h:114
GreenMonster::Open
void Open()
Definition
GreenMonster.cc:35
GreenMonster::fVerbose
Bool_t fVerbose
Definition
GreenMonster.h:103
GreenMonster::SCNSetValue
void SCNSetValue(Int_t, Int_t)
Definition
GreenMonster.cc:134
GreenMonster::statusSCN
Int_t statusSCN
Definition
GreenMonster.h:112
GreenMonster::fCrateNames
TString * fCrateNames[5]
Definition
GreenMonster.h:106
Feedback
include
GreenMonster.h
Generated on Wed Oct 22 2025 21:41:25 for JAPAn by
1.13.1