| Line | |
|---|
| 1 | #ifndef MARS_MEvtLoop
|
|---|
| 2 | #define MARS_MEvtLoop
|
|---|
| 3 |
|
|---|
| 4 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 5 | // //
|
|---|
| 6 | // MEvtLoop //
|
|---|
| 7 | // //
|
|---|
| 8 | // Class to execute the tasks in a tasklist //
|
|---|
| 9 | // //
|
|---|
| 10 | /////////////////////////////////////////////////////////////////////////////
|
|---|
| 11 |
|
|---|
| 12 | #ifndef MARS_MParContainer
|
|---|
| 13 | #include "MParContainer.h"
|
|---|
| 14 | #endif
|
|---|
| 15 |
|
|---|
| 16 | class MParList;
|
|---|
| 17 | class MTaskList;
|
|---|
| 18 | class TGProgressBar;
|
|---|
| 19 |
|
|---|
| 20 | class MEvtLoop : public MParContainer
|
|---|
| 21 | {
|
|---|
| 22 | private:
|
|---|
| 23 | MParList *fParList;
|
|---|
| 24 | MTaskList *fTaskList;
|
|---|
| 25 |
|
|---|
| 26 | TGProgressBar *fProgress;
|
|---|
| 27 |
|
|---|
| 28 | enum { kIsOwner = BIT(14) };
|
|---|
| 29 |
|
|---|
| 30 | public:
|
|---|
| 31 | MEvtLoop();
|
|---|
| 32 | virtual ~MEvtLoop();
|
|---|
| 33 |
|
|---|
| 34 | void SetParList(MParList *p) { fParList = p; }
|
|---|
| 35 | MParList *GetParList() const { return fParList; }
|
|---|
| 36 |
|
|---|
| 37 | void SetOwner(Bool_t enable=kTRUE);
|
|---|
| 38 |
|
|---|
| 39 | void SetProgressBar(TGProgressBar *bar) { fProgress = bar; }
|
|---|
| 40 |
|
|---|
| 41 | Bool_t PreProcess(const char *tlist="MTaskList");
|
|---|
| 42 | void Process(Int_t maxcnt) const;
|
|---|
| 43 | Bool_t PostProcess() const;
|
|---|
| 44 |
|
|---|
| 45 | Bool_t Eventloop(Int_t maxcnt=-1, const char *tlist="MTaskList");
|
|---|
| 46 |
|
|---|
| 47 | ClassDef(MEvtLoop, 0) // Class to execute the tasks in a tasklist
|
|---|
| 48 | };
|
|---|
| 49 |
|
|---|
| 50 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.