source: trunk/MagicSoft/Mars/meventdisp/MGFadcDisp.h@ 956

Last change on this file since 956 was 956, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.4 KB
Line 
1#ifndef MGFADCDISP_H
2#define MGFADCDISP_H
3
4#ifndef MAGIC_H
5#include "MAGIC.h"
6#endif
7
8#ifndef ROOT_TGFrame
9#include <TGFrame.h>
10#endif
11
12class MParList;
13class MReadTree;
14class MRawEvtData;
15
16class TList;
17class TCanvas;
18class TGListBox;
19class TGTextEntry;
20
21class MGFadcDisp : public TGTransientFrame
22{
23private:
24 //
25 // GUI stuff
26 //
27 TList *fList;
28
29 TGTextEntry *fTxtEvtNr;
30 TGListBox *fPixelList;
31
32 TCanvas *fCanvas;
33
34 void AddTopFramePart1(TGVerticalFrame *frame,
35 const char *filename,
36 const char *treename);
37 void AddTopFramePart2(TGVerticalFrame *frame);
38 void AddMidFrame(TGHorizontalFrame *frame);
39 void AddLowFrame(TGHorizontalFrame *frame);
40
41 void CreateGui(const char *filename, const char *treename);
42 void SetupFileAccess(const char *filename, const char *treename);
43
44 //
45 // File Access stuff
46 //
47 MParList *pList;
48 MRawEvtData *fEvtData;
49 MReadTree *fReadTree;
50
51 void ReadinEvent(UInt_t iEvt);
52 void DisplayPix(UInt_t i);
53
54public:
55
56 MGFadcDisp(char *filename, char *treename,
57 const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h);
58
59 ~MGFadcDisp();
60
61 void CloseWindow();
62
63 void CreatePixelList(Int_t lastsel=-1);
64 void UpdateEventCounter();
65
66 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
67
68 ClassDef(MGFadcDisp, 0)
69};
70
71#endif
72
73
Note: See TracBrowser for help on using the repository browser.