source: trunk/MagicSoft/Simulation/Corsika/GuiSimone/MainFrameSimone.hxx@ 425

Last change on this file since 425 was 425, checked in by harald, 24 years ago
first version with the possibility of drawing event distributions
File size: 2.8 KB
Line 
1#include <TROOT.h>
2#include <TSystem.h>
3#include <TGClient.h>
4#include <TGButton.h>
5#include <TGMenu.h>
6#include <TGTab.h>
7#include <TGListBox.h>
8#include <TGLabel.h>
9#include <TGPicture.h>
10#include <TGFSContainer.h>
11#include <TRootEmbeddedCanvas.h>
12#include <TNtuple.h>
13#include <TFile.h>
14#include <TCanvas.h>
15
16#include "COREventHeader.hxx"
17#include "CORParticle.hxx"
18
19
20enum CommandIdentifiers {
21 M_FILE_EXIT ,
22
23 M_CDIR_UP,
24 M_LIST_MODE ,
25 M_DETAIL_MODE,
26 M_BUTTON_SELECT,
27
28 M_BUTTON_PRINT,
29 M_BUTTON_PARTID,
30 M_BUTTON_ENERGY,
31 M_BUTTON_CORE,
32 M_BUTTON_THETA,
33 M_BUTTON_PHI,
34 M_BUTTON_FIRSTINT,
35
36 M_BUTTON_PREV,
37 M_BUTTON_NEXT,
38
39 M_BUTTON_WAVELEN,
40 M_BUTTON_POSIT,
41 M_BUTTON_HEIGHT,
42 M_BUTTON_TIME,
43 M_BUTTON_DIRE,
44
45 M_CTRL_EXIT,
46 M_CTRL_PWD,
47 M_CTRL_PATH
48};
49
50
51class MainFrameSimone : public TGMainFrame {
52
53private:
54 Char_t fInputPath[200] ;
55 Int_t fNumEvents ;
56 Char_t fNtupPath[200] ;
57
58 Int_t fEvtNb ;
59
60 TNtuple *fNtup ;
61 TNtuple *fNtupEvt ;
62
63 TGMenuBar *fMenuBar ;
64 TGPopupMenu *fFileMenu ;
65 TGCompositeFrame *fFrame ;
66 TGTab *fTab ;
67 TGCompositeFrame *fTabF1, *fTabF2, *fTabF3, *fTabF4 ;
68
69 TGCompositeFrame *fTabF1a, *fTabF1b ;
70 TGTextButton *fSelectButton ;
71 TGListBox *fDir ;
72 TGPictureButton *fCdup, *fListMode, *fDetail ;
73 TGFileContainer *fFileCont ;
74 TGListView *fFileView ;
75
76 TGCompositeFrame *fTabF2a, *fTabF2b, *fTabF2c ;
77 TGLabel *fLabelInput, *fLabelNumEvts ;
78 TGListBox *fDir2, *fDirNum ;
79 TGTextButton *fButtonPrint ;
80 TRootEmbeddedCanvas *fCanvasRun ;
81 TGTextButton *fButtonPartID, *fButtonEnergy, *fButtonCore ;
82 TGTextButton *fButtonTheta, *fButtonPhi, *fButtonFirst ;
83
84 TGCompositeFrame *fTabF3a, *fTabF3b, *fTabF3c ;
85 TGLabel *fLabel3, *fLabel4 ;
86 TGListBox *fDir3, *fDirEvtNb ;
87 TRootEmbeddedCanvas *fCanvasEvt ;
88 TGTextButton *fButtonPrev, *fButtonNext ;
89 TGTextButton *fButtonWave, *fButtonPosit ;
90 TGTextButton *fButtonHeight, *fButtonTime, *fButtonDire ;
91
92
93 TGTextButton *fButton1 ;
94 TGTextButton *fButton2 ;
95 TGTextButton *fButton3 ;
96 TGLayoutHints *fLayout, *fLayMenuBar, *fLayMenuItem ;
97 TGLayoutHints *fLayTab;
98
99 const TGPicture *fPicCdup, *fPicList, *fPicDetail ;
100
101public:
102 MainFrameSimone(const TGWindow *p, UInt_t w, UInt_t h);
103 ~MainFrameSimone();
104
105 void CloseWindow() ;
106
107 Bool_t CerFileExist(Char_t *dir) ;
108 Bool_t DrawRunParam(Char_t *paraName) ;
109 Bool_t DrawEvtParam(Char_t *paraName) ;
110
111 Bool_t CheckNtup() ;
112
113 Bool_t ReadDataToNtup() ;
114 Bool_t ReadinEvt() ;
115
116 Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
117
118};
119
120
121
122
123
124
125
Note: See TracBrowser for help on using the repository browser.