| 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 | 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 |
|
|---|
| 62 | public:
|
|---|
| 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.