1 |
#ifndef __PAMevcontrolfun__ |
2 |
#define __PAMevcontrolfun__ |
3 |
#include <feventvstruct.h> |
4 |
#include <TObjectTable.h> |
5 |
#include <TGClient.h> |
6 |
#include <TGButton.h> |
7 |
#include <TGComboBox.h> |
8 |
#include <TGLabel.h> |
9 |
#include <TGTextEntry.h> |
10 |
#include <TGFrame.h> |
11 |
#include <TGButtonGroup.h> |
12 |
#include <TGProgressBar.h> |
13 |
#include <TGMsgBox.h> |
14 |
#include <TGComboBox.h> |
15 |
#include <TTree.h> |
16 |
#include <TClassEdit.h> |
17 |
#include <TObject.h> |
18 |
#include <TList.h> |
19 |
#include <TSystem.h> |
20 |
#include <TSystemDirectory.h> |
21 |
#include <TString.h> |
22 |
#include <TFile.h> |
23 |
#include <TClass.h> |
24 |
#include <TCanvas.h> |
25 |
#include <TH1.h> |
26 |
#include <TH1F.h> |
27 |
#include <TH2D.h> |
28 |
#include <TLatex.h> |
29 |
#include <TPad.h> |
30 |
#include <TPaveLabel.h> |
31 |
#include <TLine.h> |
32 |
#include <TPolyLine.h> |
33 |
#include <TChain.h> |
34 |
#include <TApplication.h> |
35 |
#include <TVirtualX.h> |
36 |
#include <TGClient.h> |
37 |
#include <TGWindow.h> |
38 |
#include <TEllipse.h> |
39 |
#include <TArrow.h> |
40 |
#include <TStyle.h> |
41 |
// |
42 |
class CalorimeterCalibration : public TObject { |
43 |
public: |
44 |
CalorimeterCalibration(); |
45 |
Int_t status; |
46 |
TString fname; |
47 |
Float_t mip[2][22][96]; |
48 |
Float_t ermip[2][22][96]; |
49 |
Float_t fp[4][2][22][96]; |
50 |
Float_t fpe[4][2][22][96]; |
51 |
Float_t chi2[2][22][96]; |
52 |
Float_t ndf[2][22][96]; |
53 |
Float_t mask[2][22][96]; |
54 |
ClassDef(CalorimeterCalibration,1); |
55 |
}; |
56 |
|
57 |
// |
58 |
// GUI |
59 |
// |
60 |
class PAMevcontrol : public TGMainFrame { |
61 |
|
62 |
private: |
63 |
TGHProgressBar *fHProg1; |
64 |
TGCheckButton *ffl0; |
65 |
TGCheckButton *ftrks4; |
66 |
// |
67 |
TGCheckButton *fchktof; |
68 |
TGCheckButton *fchkac; |
69 |
TGCheckButton *fchktrk; |
70 |
TGCheckButton *fchks4; |
71 |
TGCheckButton *fchknd; |
72 |
TGCheckButton *fchkcalo; |
73 |
TGCheckButton *fchkinfo; |
74 |
TGCheckButton *fchknames; |
75 |
TGCheckButton *fchkpalette; |
76 |
// |
77 |
TGRadioButton *bwc0; |
78 |
TGRadioButton *bwc1; |
79 |
TGRadioButton *jbwc0; |
80 |
TGRadioButton *jbwc1; |
81 |
// |
82 |
TGCompositeFrame *cframe1; |
83 |
TGTextButton *bstop; |
84 |
TGTextEntry *fText2; |
85 |
TGTextEntry *fText4; |
86 |
TGComboBox *fCombo; |
87 |
TGComboBox *fComboDec; |
88 |
|
89 |
TGTextButton *fshoworb; |
90 |
TGTextButton *fshowtrg; |
91 |
TGTextButton *fshowtof; |
92 |
TGTextButton *fshowtrk; |
93 |
TGTextButton *fshowcal; |
94 |
TGCheckButton *fchkcalost; |
95 |
TGTextButton *fshowrun; |
96 |
TGTextButton *fshows4; |
97 |
TGTextButton *fshowac; |
98 |
TGTextButton *fshownd; |
99 |
TGTextButton *fshowall; |
100 |
TGTextButton *fshowsi; |
101 |
// |
102 |
TGGroupFrame *gf; |
103 |
TGHorizontalFrame *hframedec[12]; |
104 |
// |
105 |
TCanvas *thefigure; |
106 |
struct Variables *cvar; |
107 |
struct Levels *clev; |
108 |
|
109 |
public: |
110 |
PAMevcontrol(const TGWindow *p,UInt_t w,UInt_t h,struct Variables & var, struct Levels & level, TCanvas &figure); |
111 |
virtual ~PAMevcontrol(); |
112 |
|
113 |
void showorbdata(); |
114 |
void showtrgdata(); |
115 |
void showtofdata(); |
116 |
void showtrkdata(); |
117 |
void showrundata(); |
118 |
void showsidata(); |
119 |
void showcaldata(); |
120 |
void shows4data(); |
121 |
void showacdata(); |
122 |
void showalldata(); |
123 |
void shownddata(); |
124 |
void chkcalost(); |
125 |
|
126 |
void StopSearching(); |
127 |
void SetSearching(); |
128 |
void RefreshButtons(); |
129 |
void CheckLevel(); |
130 |
void chktof(); |
131 |
void chkac(); |
132 |
void chktrk(); |
133 |
void chkcalo(); |
134 |
void chks4(); |
135 |
void chknd(); |
136 |
void chkinfo(); |
137 |
void chknames(); |
138 |
void chkpalette(); |
139 |
void radiocolor(); |
140 |
void radiobw(); |
141 |
void radiotrack(); |
142 |
void forcel0(); |
143 |
void next(); |
144 |
void prev(); |
145 |
void stop(); |
146 |
void SetFilename(); |
147 |
void SetFilter(); |
148 |
void jumpto(); |
149 |
void radioevent(); |
150 |
void radioprog(); |
151 |
void saveas(); |
152 |
void CompleteText(); |
153 |
void refreshdec(Int_t); |
154 |
// void Close(); |
155 |
void increment(float val); |
156 |
void DIALOG(Int_t ty, TString warn); |
157 |
void clearselfi(); |
158 |
void upgrnamfi(); |
159 |
void Terminate(); |
160 |
ClassDef(PAMevcontrol,1); |
161 |
}; |
162 |
|
163 |
#endif |