| Line | |
|---|
| 1 | #ifndef MARS_MEventDisplay
|
|---|
| 2 | #define MARS_MEventDisplay
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MStatusDisplay
|
|---|
| 5 | #include "MStatusDisplay.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | class TGLabel;
|
|---|
| 9 | class TGTextEntry;
|
|---|
| 10 | class MEvtLoop;
|
|---|
| 11 |
|
|---|
| 12 | class MParList;
|
|---|
| 13 | class MTaskList;
|
|---|
| 14 | class MReadTree;
|
|---|
| 15 |
|
|---|
| 16 | class MEventDisplay : public MStatusDisplay
|
|---|
| 17 | {
|
|---|
| 18 | private:
|
|---|
| 19 | enum
|
|---|
| 20 | {
|
|---|
| 21 | kEvtPrev = MStatusDisplay::kSearch + 1,
|
|---|
| 22 | kEvtNext,
|
|---|
| 23 | kEvtNumber
|
|---|
| 24 | };
|
|---|
| 25 |
|
|---|
| 26 | TGCompositeFrame *fTab1;
|
|---|
| 27 | TGCompositeFrame *fTab2;
|
|---|
| 28 |
|
|---|
| 29 | TGLabel *fNumOfEvts;
|
|---|
| 30 | TCanvas *fCanvas;
|
|---|
| 31 | MEvtLoop *fEvtLoop;
|
|---|
| 32 |
|
|---|
| 33 | void AddTopFramePart1(TGCompositeFrame *frame,
|
|---|
| 34 | const char *filename, const char *treename);
|
|---|
| 35 | void AddTopFramePart2(TGCompositeFrame *frame);
|
|---|
| 36 | void AddGeometryTabs();
|
|---|
| 37 | void AddUserFrame(const char *filename);
|
|---|
| 38 |
|
|---|
| 39 | void UpdateDisplay();
|
|---|
| 40 | void SetupTaskList(const char *tname, const char *fname);
|
|---|
| 41 |
|
|---|
| 42 | void ReadFirstEvent();
|
|---|
| 43 | void ReadinEvent(Int_t dir=0);
|
|---|
| 44 |
|
|---|
| 45 | Int_t GetFileType(const char *tree, const char *fname) const;
|
|---|
| 46 |
|
|---|
| 47 | Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
|
|---|
| 48 |
|
|---|
| 49 | public:
|
|---|
| 50 | MEventDisplay(const char *fname);
|
|---|
| 51 | ~MEventDisplay();
|
|---|
| 52 |
|
|---|
| 53 | ClassDef(MEventDisplay, 0) // Display for camera images (cerenkov events)
|
|---|
| 54 | };
|
|---|
| 55 |
|
|---|
| 56 | #endif
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.