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 |
TGTextButton *bstop; |
83 |
TGTextEntry *fText2; |
84 |
TGTextEntry *fText4; |
85 |
TGComboBox *fCombo; |
86 |
TCanvas *thefigure; |
87 |
struct Variables *cvar; |
88 |
struct Levels *clev; |
89 |
|
90 |
public: |
91 |
PAMevcontrol(const TGWindow *p,UInt_t w,UInt_t h,struct Variables & var, struct Levels & level, TCanvas &figure); |
92 |
virtual ~PAMevcontrol(); |
93 |
void StopSearching(); |
94 |
void SetSearching(); |
95 |
void RefreshButtons(); |
96 |
void CheckLevel(); |
97 |
void chktof(); |
98 |
void chkac(); |
99 |
void chktrk(); |
100 |
void chkcalo(); |
101 |
void chks4(); |
102 |
void chknd(); |
103 |
void chkinfo(); |
104 |
void chknames(); |
105 |
void chkpalette(); |
106 |
void radiocolor(); |
107 |
void radiobw(); |
108 |
void radiotrack(); |
109 |
void forcel0(); |
110 |
void next(); |
111 |
void prev(); |
112 |
void stop(); |
113 |
void SetFilename(); |
114 |
void SetFilter(); |
115 |
void jumpto(); |
116 |
void radioevent(); |
117 |
void radioprog(); |
118 |
void saveas(); |
119 |
void CompleteText(); |
120 |
// void Close(); |
121 |
void increment(float val); |
122 |
void DIALOG(Int_t ty, TString warn); |
123 |
void clearselfi(); |
124 |
void upgrnamfi(); |
125 |
void Terminate(); |
126 |
ClassDef(PAMevcontrol,1); |
127 |
}; |
128 |
|
129 |
#endif |