-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTigFrame.h
More file actions
109 lines (85 loc) · 2.41 KB
/
TigFrame.h
File metadata and controls
109 lines (85 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
// part of TigSortGUI
// author: Ulrike Hager
#ifndef TIGFRAME_H
#define TIGFRAME_H
//class TigFrame;
#include <set>
#include <TROOT.h>
#include <TSystem.h>
#include <TGMenu.h>
#include <TGButton.h>
#include <TGButtonGroup.h>
#include <TGLayout.h>
#include <TGTextEntry.h>
#include <TSocket.h>
#include <TMessage.h>
#include <TApplication.h>
#include <TObject.h>
#include <TGFileDialog.h>
#include <TGListBox.h>
#include <TGTab.h>
#include <TGComboBox.h>
#include <TCanvas.h>
#include <TH1.h>
#include "TigDetFrame.h"
#include "TigManager.h"
class TigDetFrame;
enum ButtonID {
WRITE_TO_TREE
};
//---- TigFrame
class TigFrame : public TGMainFrame
{
//RQ_OBJECT("TigFrame")
public: //---- public ---------------
TigFrame( const TGWindow *pWindow, UInt_t pWidth, UInt_t pHeight, UInt_t pOptions = kVerticalFrame);
virtual ~TigFrame(){CloseWindow();};
virtual void CloseWindow(void);
//slots
void GetDetectorList(char *);
void GetDetectorList(int);
void GetHisto(char *);
void GetHistoList(char *);
void GetHistoList(int);
Int_t GetUsableHeight();
void HandleDetFrame(int,int);
void HandleMenu(Int_t);
void LayoutTreeTabs();
// virtual Bool_t HandleTimer(TTimer *pTimer);
void MakeOutFile(char *);
void Run();
void SetOutFile(char *);
void Step();
// void SetTimer(int t){mTimerTime = t;}
void SwitchHistoVsTree(Int_t);
void SwitchOutfileSetting(Int_t);
void UpdateHisto();
protected: //---- protected -----------
void AssembleOutFileNumbers(TList* files);
TigManager* mManager;
TH1 *mHisto;
TGMenuBar *mMenuBar;
TCanvas *mCanvas;
TGPopupMenu *mMenuConfig, *mDetConfMenu, *mMenuFile, *mMenuCalib, *mMenuReset, *mMenuPrefs;
TGListBox *mLBDetectors, *mLBHistos;
TGComboBox *mComboTrees;
TGTextEntry *mOutEntry, *mOutPostfixEntry, *mOutPrefixEntry;
TGTextButton *mRunButton, *mTBSaveHistos, *mTBStep;
std::set<int> mRunNumbers;
TGFileInfo mFileInfo;
TGButtonGroup *mBGOutfile, *mBGHisto;
TGGroupFrame *mGFOutEntry;
TGRadioButton *mRBOutfile[2], *mRBHisto[2];
TGVerticalFrame *mFrameOutEntry, *mFrameTreeMain ;
TGLayoutHints *mLHOutEntry, *mLHDetList, *mLHButtons;
TGHorizontalFrame *mFrameMain, *mFrameButtons, *mFrameTree, *mFrameLists, *mFrameMods;
std::string mOutFileNumbers;
TGTab *mTab;
// vector<TigDetFrame*> mDetFrames;
std::vector<TGCompositeFrame*> mTreeTabs;
private:
TigFrame(const TigFrame&);
TigFrame& operator=( const TigFrame& );
ClassDef(TigFrame,0);
};
#endif