source: trunk/MagicSoft/Mars/meventdisp/MGEvtDisplay.h@ 977

Last change on this file since 977 was 961, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1#ifndef MGEVTDISPLAY_H
2#define MGEVTDISPLAY_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 TList;
13class TCanvas;
14class TGLabel;
15class TGTextEntry;
16
17class MEvtLoop;
18class MParList;
19class MTaskList;
20class MReadTree;
21
22class MGEvtDisplay : public TGTransientFrame
23{
24private:
25 //
26 // GUI stuff
27 //
28 TGLabel *fNumOfEvts;
29 TGTextEntry *fTxtEvtNr;
30
31 void AddTopFramePart1(TGVerticalFrame *frame,
32 const char *filename,
33 const char *treename);
34 void AddTopFramePart2(TGVerticalFrame *frame);
35 void AddMidFrame(TGHorizontalFrame *frame);
36 void AddLowFrame(TGHorizontalFrame *frame);
37
38 void AddFrames(const char *filename, const char *treename);
39
40 void ReadinEvent(UInt_t iEvt);
41
42protected:
43 TList *fList;
44 MEvtLoop *fEvtLoop;
45
46 TCanvas *fCanvas;
47
48 TGCompositeFrame *fTab1;
49 TGCompositeFrame *fTab2;
50
51 TGVerticalFrame *fMidFrame;
52
53 MParList *GetParList() const;
54 MTaskList *GetTaskList() const;
55 MReadTree *GetReader() const;
56
57 void UpdateEventCounter();
58 void UpdateNumOfEvts();
59
60 virtual void UpdateDisplay() = 0;
61
62public:
63 MGEvtDisplay(const char *fname, const char *tname,
64 const TGWindow *p, const TGWindow *main,
65 UInt_t w, UInt_t h);
66
67 ~MGEvtDisplay();
68
69 void CloseWindow();
70
71 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
72
73 ClassDef(MGEvtDisplay, 0) // base class to display something event by event
74};
75
76#endif
77
78
Note: See TracBrowser for help on using the repository browser.