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

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