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