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 |
#include <TGIcon.h> |
42 |
// |
43 |
class CalorimeterCalibration : public TObject { |
44 |
public: |
45 |
CalorimeterCalibration(); |
46 |
Int_t status; |
47 |
TString fname; |
48 |
Float_t mip[2][22][96]; |
49 |
Float_t ermip[2][22][96]; |
50 |
Float_t fp[4][2][22][96]; |
51 |
Float_t fpe[4][2][22][96]; |
52 |
Float_t chi2[2][22][96]; |
53 |
Float_t ndf[2][22][96]; |
54 |
Float_t mask[2][22][96]; |
55 |
ClassDef(CalorimeterCalibration,1); |
56 |
}; |
57 |
|
58 |
// |
59 |
// GUI |
60 |
// |
61 |
class PAMevcontrol : public TGMainFrame { |
62 |
|
63 |
private: |
64 |
TGHProgressBar *fHProg1; |
65 |
TGCheckButton *ffl0; |
66 |
// TGCheckButton *ftrks4; |
67 |
// |
68 |
TGCheckButton *fchktof; |
69 |
TGCheckButton *fchkac; |
70 |
TGCheckButton *fchktrk; |
71 |
TGCheckButton *fchks4; |
72 |
TGCheckButton *fchknd; |
73 |
TGCheckButton *fchkcalo; |
74 |
TGCheckButton *fchkinfo; |
75 |
TGCheckButton *fchknames; |
76 |
TGCheckButton *fchkpalette; |
77 |
// |
78 |
TGRadioButton *bwc0; |
79 |
TGRadioButton *bwc1; |
80 |
TGRadioButton *jbwc0; |
81 |
TGRadioButton *jbwc1; |
82 |
// |
83 |
TGCompositeFrame *cframe1; |
84 |
TGTextButton *bstop; |
85 |
TGTextEntry *fText2; |
86 |
TGTextEntry *fText4; |
87 |
TGComboBox *fCombo; |
88 |
TGComboBox *fComboDec; |
89 |
|
90 |
TGTextButton *fgetl0; |
91 |
|
92 |
TGTextButton *fshoworb; |
93 |
TGTextButton *fshowtrg; |
94 |
TGTextButton *fshowtof; |
95 |
TGTextButton *fshowtrk; |
96 |
TGTextButton *fshowcal; |
97 |
TGCheckButton *fchkcalost; |
98 |
TGTextButton *fshowrun; |
99 |
TGTextButton *fshows4; |
100 |
TGTextButton *fshowac; |
101 |
TGTextButton *fshownd; |
102 |
TGTextButton *fshowall; |
103 |
TGTextButton *fshowsi; |
104 |
// |
105 |
TGGroupFrame *gf; |
106 |
TGHorizontalFrame *hframedec[12]; |
107 |
// |
108 |
TCanvas *thefigure; |
109 |
struct Variables *cvar; |
110 |
struct Levels *clev; |
111 |
|
112 |
public: |
113 |
PAMevcontrol(const TGWindow *p,UInt_t w,UInt_t h,struct Variables & var, struct Levels & level, TCanvas &figure); |
114 |
virtual ~PAMevcontrol(); |
115 |
|
116 |
void showorbdata(); |
117 |
void showtrgdata(); |
118 |
void showtofdata(); |
119 |
void showtrkdata(); |
120 |
void showrundata(); |
121 |
void showsidata(); |
122 |
void showcaldata(); |
123 |
void shows4data(); |
124 |
void showacdata(); |
125 |
void showalldata(); |
126 |
void shownddata(); |
127 |
void chkcalost(); |
128 |
void getl0file(); |
129 |
|
130 |
void StopSearching(); |
131 |
void SetSearching(); |
132 |
void RefreshButtons(); |
133 |
void CheckLevel(); |
134 |
void chktof(); |
135 |
void chkac(); |
136 |
void chktrk(); |
137 |
void chkcalo(); |
138 |
void chks4(); |
139 |
void chknd(); |
140 |
void chkinfo(); |
141 |
void chknames(); |
142 |
void chkpalette(); |
143 |
void radiocolor(); |
144 |
void radiobw(); |
145 |
void radiotrack(); |
146 |
void forcel0(); |
147 |
void next(); |
148 |
void prev(); |
149 |
void stop(); |
150 |
void SetFilename(); |
151 |
void SetFilter(); |
152 |
void jumpto(); |
153 |
void radioevent(); |
154 |
void radioprog(); |
155 |
void saveas(); |
156 |
void CompleteText(); |
157 |
void refreshdec(Int_t); |
158 |
// void Close(); |
159 |
void increment(float val); |
160 |
void DIALOG(Int_t ty, TString warn); |
161 |
void clearselfi(); |
162 |
void upgrnamfi(); |
163 |
void Terminate(); |
164 |
ClassDef(PAMevcontrol,1); |
165 |
}; |
166 |
|
167 |
#endif |