1 |
mocchiut |
1.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 |
|
|
TGTextButton *bstop; |
67 |
|
|
TGTextEntry *fText2; |
68 |
|
|
TGTextEntry *fText4; |
69 |
|
|
TGComboBox *fCombo; |
70 |
|
|
TCanvas *thefigure; |
71 |
|
|
struct Variables *cvar; |
72 |
|
|
struct Levels *clev; |
73 |
|
|
|
74 |
|
|
public: |
75 |
|
|
PAMevcontrol(const TGWindow *p,UInt_t w,UInt_t h,struct Variables & var, struct Levels & level, TCanvas &figure); |
76 |
|
|
virtual ~PAMevcontrol(); |
77 |
|
|
void StopSearching(); |
78 |
|
|
void SetSearching(); |
79 |
|
|
void CheckLevel(); |
80 |
|
|
void chktof(); |
81 |
|
|
void chkac(); |
82 |
|
|
void chktrk(); |
83 |
|
|
void chkcalo(); |
84 |
|
|
void chks4(); |
85 |
|
|
void chknd(); |
86 |
|
|
void chkinfo(); |
87 |
|
|
void chknames(); |
88 |
|
|
void chkpalette(); |
89 |
|
|
void radiocolor(); |
90 |
|
|
void radiobw(); |
91 |
|
|
void radiotrack(); |
92 |
|
|
void forcel0(); |
93 |
|
|
void next(); |
94 |
|
|
void prev(); |
95 |
|
|
void stop(); |
96 |
|
|
void SetFilename(); |
97 |
|
|
void SetFilter(); |
98 |
|
|
void jumpto(); |
99 |
|
|
void radioevent(); |
100 |
|
|
void radioprog(); |
101 |
|
|
void saveas(); |
102 |
|
|
void CompleteText(); |
103 |
|
|
// void Close(); |
104 |
|
|
void increment(float val); |
105 |
|
|
void DIALOG(Int_t ty, TString warn); |
106 |
|
|
void clearselfi(); |
107 |
|
|
void upgrnamfi(); |
108 |
|
|
void Terminate(); |
109 |
|
|
ClassDef(PAMevcontrol,1); |
110 |
|
|
}; |
111 |
|
|
|
112 |
|
|
#endif |