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

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