source: trunk/MagicSoft/Mars/mbase/MTask.cc@ 456

Last change on this file since 456 was 454, checked in by harald, 24 years ago
Import the first sources of the MAGIC Analysis and Reconstruction Software. T. Bretz and H. Kornmayer 20.December 2000
File size: 2.0 KB
Line 
1///////////////////////////////////////////////////////////////////////
2//
3// MTask
4//
5// Base class for all tasks which can perfomed in a tasklist
6// For each event processed in the eventloop all the different
7// tasks in the tasklist will be processed.
8//
9// So all tasks must inherit from this baseclass.
10//
11// The data member fEventType is used to indicate the type of events
12// that are process by this task. There are the following different
13// event types:
14//
15// This is the type of task for which this task should be processed
16// taskType-bits: 7 6 5 4 3 2 1 0
17// 0 DATA_EVT
18// 1 CALIBRATION_EVT
19// ? etc. etc.
20//
21// Inside this abstract class, there are three fundamental function:
22//
23// - PreProcess() : executed before the eventloop starts. Here you
24// can initiate different things, open files, etc.
25//
26// - Process() : executed for each event in the eventloop. Do in
27// one task after the other (as the occur in the
28// tasklist) the action of one task.
29//
30// - PostProcess(): executed after the eventloop. Here you can close
31// output files, start display of the run parameter,
32// etc.
33//
34//
35///////////////////////////////////////////////////////////////////////
36
37#include "MTask.h"
38
39#include <string.h>
40#include <iostream.h>
41
42ClassImp(MTask)
43
44Bool_t MTask::PreProcess( MParList *pList )
45{
46 //
47 // This is processed before the eventloop starts
48 //
49 // It is the job of the PreProcess to connect the tasks
50 // with the right container in the parameter list.
51 //
52 // the virtual implementation returns kTRUE
53 //
54 return kTRUE;
55}
56
57
58Bool_t MTask::Process()
59{
60 //
61 // This is processed for every event in the eventloop
62 //
63 // the virtual implementation returns kTRUE
64 //
65 return kTRUE;
66}
67
68Bool_t MTask::PostProcess()
69{
70 //
71 // This is processed after the eventloop starts
72 //
73 // the virtual implementation returns kTRUE
74 //
75 return kTRUE;
76}
77
78
Note: See TracBrowser for help on using the repository browser.