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 |
|
---|
12 | class TList;
|
---|
13 | class TCanvas;
|
---|
14 | class TGLabel;
|
---|
15 | class TGTextEntry;
|
---|
16 |
|
---|
17 | class MEvtLoop;
|
---|
18 | class MParList;
|
---|
19 | class MTaskList;
|
---|
20 | class MReadTree;
|
---|
21 |
|
---|
22 | class MGEvtDisplay : public TGTransientFrame
|
---|
23 | {
|
---|
24 | private:
|
---|
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 |
|
---|
42 | protected:
|
---|
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 |
|
---|
64 | public:
|
---|
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.