source: trunk/MagicSoft/Mars/mbase/MEvtLoop.h@ 1471

Last change on this file since 1471 was 1471, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.5 KB
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
16class MParList;
17class MTaskList;
18class TGProgressBar;
19
20class MEvtLoop : public MParContainer
21{
22private:
23 MParList *fParList;
24 MTaskList *fTaskList;
25
26 TGProgressBar *fProgress;
27
28 enum { kIsOwner = BIT(14) };
29
30public:
31 MEvtLoop();
32 virtual ~MEvtLoop();
33
34 void SetParList(MParList *p) { fParList = p; }
35 MParList *GetParList() const { return fParList; }
36 MTaskList *GetTaskList() const { return fTaskList; }
37
38 void SetOwner(Bool_t enable=kTRUE);
39
40 void SetProgressBar(TGProgressBar *bar) { fProgress = bar; }
41
42 Bool_t PreProcess(const char *tlist="MTaskList");
43 void Process(Int_t maxcnt) const;
44 Bool_t PostProcess() const;
45
46 Bool_t Eventloop(Int_t maxcnt=-1, const char *tlist="MTaskList");
47
48 void SavePrimitive(ofstream &out, Option_t *o="");
49
50 ClassDef(MEvtLoop, 0) // Class to execute the tasks in a tasklist
51};
52
53#endif
Note: See TracBrowser for help on using the repository browser.