source: tags/Mars-V0.5/mbase/MEvtLoop.h

Last change on this file was 1020, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.4 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
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.