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

Last change on this file since 1014 was 991, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.6 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 Bool_t fInitOk;
54
55 MParList *GetParList() const;
56 MTaskList *GetTaskList() const;
57 MReadTree *GetReader() const;
58
59 void UpdateEventCounter();
60 void UpdateNumOfEvts();
61
62 virtual void UpdateDisplay() = 0;
63
64public:
65 MGEvtDisplay(const char *fname, const char *tname,
66 const TGWindow *p, const TGWindow *main,
67 UInt_t w, UInt_t h);
68
69 ~MGEvtDisplay();
70
71 void CloseWindow();
72
73 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
74
75 ClassDef(MGEvtDisplay, 0) // base class to display something event by event
76};
77
78#endif
79
80
Note: See TracBrowser for help on using the repository browser.