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