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

Last change on this file since 703 was 698, checked in by tbretz, 24 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 void PostProcess() const;
38
39 void 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.