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 *fgetl0; |
90 |
|
91 |
TGTextButton *fshoworb; |
92 |
TGTextButton *fshowtrg; |
93 |
TGTextButton *fshowtof; |
94 |
TGTextButton *fshowtrk; |
95 |
TGTextButton *fshowcal; |
96 |
TGCheckButton *fchkcalost; |
97 |
TGTextButton *fshowrun; |
98 |
TGTextButton *fshows4; |
99 |
TGTextButton *fshowac; |
100 |
TGTextButton *fshownd; |
101 |
TGTextButton *fshowall; |
102 |
TGTextButton *fshowsi; |
103 |
// |
104 |
TGGroupFrame *gf; |
105 |
TGHorizontalFrame *hframedec[12]; |
106 |
// |
107 |
TCanvas *thefigure; |
108 |
struct Variables *cvar; |
109 |
struct Levels *clev; |
110 |
|
111 |
public: |
112 |
PAMevcontrol(const TGWindow *p,UInt_t w,UInt_t h,struct Variables & var, struct Levels & level, TCanvas &figure); |
113 |
virtual ~PAMevcontrol(); |
114 |
|
115 |
void showorbdata(); |
116 |
void showtrgdata(); |
117 |
void showtofdata(); |
118 |
void showtrkdata(); |
119 |
void showrundata(); |
120 |
void showsidata(); |
121 |
void showcaldata(); |
122 |
void shows4data(); |
123 |
void showacdata(); |
124 |
void showalldata(); |
125 |
void shownddata(); |
126 |
void chkcalost(); |
127 |
void getl0file(); |
128 |
|
129 |
void StopSearching(); |
130 |
void SetSearching(); |
131 |
void RefreshButtons(); |
132 |
void CheckLevel(); |
133 |
void chktof(); |
134 |
void chkac(); |
135 |
void chktrk(); |
136 |
void chkcalo(); |
137 |
void chks4(); |
138 |
void chknd(); |
139 |
void chkinfo(); |
140 |
void chknames(); |
141 |
void chkpalette(); |
142 |
void radiocolor(); |
143 |
void radiobw(); |
144 |
void radiotrack(); |
145 |
void forcel0(); |
146 |
void next(); |
147 |
void prev(); |
148 |
void stop(); |
149 |
void SetFilename(); |
150 |
void SetFilter(); |
151 |
void jumpto(); |
152 |
void radioevent(); |
153 |
void radioprog(); |
154 |
void saveas(); |
155 |
void CompleteText(); |
156 |
void refreshdec(Int_t); |
157 |
// void Close(); |
158 |
void increment(float val); |
159 |
void DIALOG(Int_t ty, TString warn); |
160 |
void clearselfi(); |
161 |
void upgrnamfi(); |
162 |
void Terminate(); |
163 |
ClassDef(PAMevcontrol,1); |
164 |
}; |
165 |
|
166 |
#endif |