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

Last change on this file since 1477 was 1474, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 1.7 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 MakeMacro(const char *filename="evtloop.C");
49
50 void SavePrimitive(ofstream &out, Option_t *o="");
51
52 Int_t Read(const char *name);
53 Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0);
54
55 ClassDef(MEvtLoop, 1) // Class to execute the tasks in a tasklist
56};
57
58#endif
Note: See TracBrowser for help on using the repository browser.