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