| Line | |
|---|
| 1 | #ifndef MARS_MGEvtDisplay
|
|---|
| 2 | #define MARS_MGEvtDisplay
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MAGIC
|
|---|
| 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 AddMenuBar();
|
|---|
| 32 | void AddTopFramePart1(TGVerticalFrame *frame,
|
|---|
| 33 | const char *filename,
|
|---|
| 34 | const char *treename);
|
|---|
| 35 | void AddTopFramePart2(TGVerticalFrame *frame);
|
|---|
| 36 | void AddMidFrame(TGHorizontalFrame *frame);
|
|---|
| 37 | void AddLowFrame(TGHorizontalFrame *frame);
|
|---|
| 38 |
|
|---|
| 39 | void AddFrames(const char *filename, const char *treename);
|
|---|
| 40 |
|
|---|
| 41 | void SaveAsDialog() const;
|
|---|
| 42 | void ReadinEvent();
|
|---|
| 43 |
|
|---|
| 44 | Bool_t fInitOk;
|
|---|
| 45 |
|
|---|
| 46 | protected:
|
|---|
| 47 | TList *fList;
|
|---|
| 48 | MEvtLoop *fEvtLoop;
|
|---|
| 49 |
|
|---|
| 50 | TCanvas *fCanvas;
|
|---|
| 51 |
|
|---|
| 52 | TGCompositeFrame *fTab1;
|
|---|
| 53 | TGCompositeFrame *fTab2;
|
|---|
| 54 |
|
|---|
| 55 | TGVerticalFrame *fMidFrame;
|
|---|
| 56 |
|
|---|
| 57 | MParList *GetParList() const;
|
|---|
| 58 | MTaskList *GetTaskList() const;
|
|---|
| 59 | MReadTree *GetReader() const;
|
|---|
| 60 |
|
|---|
| 61 | void ReadFirstEvent();
|
|---|
| 62 | Bool_t IsInitOk() { return fInitOk; }
|
|---|
| 63 |
|
|---|
| 64 | virtual void UpdateDisplay() = 0;
|
|---|
| 65 |
|
|---|
| 66 | public:
|
|---|
| 67 | MGEvtDisplay(const char *fname, const char *tname,
|
|---|
| 68 | const TGWindow *p, const TGWindow *main,
|
|---|
| 69 | UInt_t w, UInt_t h);
|
|---|
| 70 |
|
|---|
| 71 | ~MGEvtDisplay();
|
|---|
| 72 |
|
|---|
| 73 | void CloseWindow();
|
|---|
| 74 |
|
|---|
| 75 | virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
|
|---|
| 76 |
|
|---|
| 77 | ClassDef(MGEvtDisplay, 0) // base class to display something event by event
|
|---|
| 78 | };
|
|---|
| 79 |
|
|---|
| 80 | #endif
|
|---|
| 81 |
|
|---|
| 82 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.