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

Last change on this file since 951 was 867, checked in by tbretz, 23 years ago
*** empty log message ***
File size: 1.2 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
29public:
30 MEvtLoop();
31 virtual ~MEvtLoop();
32
33 void SetParList(MParList *p) { fParList = p; }
34
35 Bool_t PreProcess(const char *tlist="MTaskList");
36 void Process(Int_t maxcnt) const;
37 Bool_t PostProcess() const;
38
39 Bool_t Eventloop(Int_t maxcnt=-1, const char *tlist="MTaskList");
40
41 ClassDef(MEvtLoop, 0) // Class to execute the tasks in a tasklist
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.