Logo ROOT   6.16/01
Reference Guide
MyTasks.cxx
Go to the documentation of this file.
1/// \file
2/// \ingroup Tutorials
3/// A set of classes deriving from TTask.
4/// See macro tasks.C to see an example of use
5/// The Exec function of each class prints one line when it is called.
6///
7/// \macro_code
8///
9/// \author Rene Brun
10
11#include "TTask.h"
12
13class MyRun : public TTask {
14
15public:
16 MyRun() {;}
17 MyRun(const char *name, const char *title);
18 virtual ~MyRun() {;}
19 void Exec(Option_t *option="");
20
21 ClassDef(MyRun,1) // Run Reconstruction task
22};
23
24class MyEvent : public TTask {
25
26public:
27 MyEvent() {;}
28 MyEvent(const char *name, const char *title);
29 virtual ~MyEvent() {;}
30 void Exec(Option_t *option="");
31
32 ClassDef(MyEvent,1) // Event Reconstruction task
33};
34
35class MyGeomInit : public TTask {
36
37public:
38 MyGeomInit() {;}
39 MyGeomInit(const char *name, const char *title);
40 virtual ~MyGeomInit() {;}
41 void Exec(Option_t *option="");
42
43 ClassDef(MyGeomInit,1) // Geometry initialisation task
44};
45
46class MyMaterialInit : public TTask {
47
48public:
49 MyMaterialInit() {;}
50 MyMaterialInit(const char *name, const char *title);
51 virtual ~MyMaterialInit() {;}
52 void Exec(Option_t *option="");
53
54 ClassDef(MyMaterialInit,1) // Materials initialisation task
55};
56
57class MyTracker : public TTask {
58
59public:
60 MyTracker() {;}
61 MyTracker(const char *name, const char *title);
62 virtual ~MyTracker() {;}
63 void Exec(Option_t *option="");
64
65 ClassDef(MyTracker,1) // Main Reconstruction task
66};
67
68class MyRecTPC : public TTask {
69
70public:
71 MyRecTPC() {;}
72 MyRecTPC(const char *name, const char *title);
73 virtual ~MyRecTPC() {;}
74 void Exec(Option_t *option="");
75
76 ClassDef(MyRecTPC,1) // TPC Reconstruction
77};
78
79
80class MyRecITS : public TTask {
81
82public:
83 MyRecITS() {;}
84 MyRecITS(const char *name, const char *title);
85 virtual ~MyRecITS() {;}
86 void Exec(Option_t *option="");
87
88 ClassDef(MyRecITS,1) // ITS Reconstruction
89};
90
91
92class MyRecMUON : public TTask {
93
94public:
95 MyRecMUON() {;}
96 MyRecMUON(const char *name, const char *title);
97 virtual ~MyRecMUON() {;}
98 void Exec(Option_t *option="");
99
100 ClassDef(MyRecMUON,1) // MUON Reconstruction
101};
102
103
104class MyRecPHOS : public TTask {
105
106public:
107 MyRecPHOS() {;}
108 MyRecPHOS(const char *name, const char *title);
109 virtual ~MyRecPHOS() {;}
110 void Exec(Option_t *option="");
111
112 ClassDef(MyRecPHOS,1) // PHOS Reconstruction
113};
114
115
116class MyRecRICH : public TTask {
117
118public:
119 MyRecRICH() {;}
120 MyRecRICH(const char *name, const char *title);
121 virtual ~MyRecRICH() {;}
122 void Exec(Option_t *option="");
123
124 ClassDef(MyRecRICH,1) // RICH Reconstruction
125};
126
127
128class MyRecTRD : public TTask {
129
130public:
131 MyRecTRD() {;}
132 MyRecTRD(const char *name, const char *title);
133 virtual ~MyRecTRD() {;}
134 void Exec(Option_t *option="");
135
136 ClassDef(MyRecTRD,1) // TRD Reconstruction
137};
138
139
140class MyRecGlobal : public TTask {
141
142public:
143 MyRecGlobal() {;}
144 MyRecGlobal(const char *name, const char *title);
145 virtual ~MyRecGlobal() {;}
146 void Exec(Option_t *option="");
147
148 ClassDef(MyRecGlobal,1) // Global Reconstruction
149};
150
151
152////////////////////////////////////////////////////////////////////////////////
153
154MyRun::MyRun(const char *name, const char *title)
155 :TTask(name,title)
156{
157}
158
159void MyRun::Exec(Option_t * /*option*/)
160{
161 printf("MyRun executing\n");
162}
163
164////////////////////////////////////////////////////////////////////////////////
165
166MyEvent::MyEvent(const char *name, const char *title)
167 :TTask(name,title)
168{
169}
170
171void MyEvent::Exec(Option_t * /*option*/)
172{
173 printf("MyEvent executing\n");
174}
175
176////////////////////////////////////////////////////////////////////////////////
177
178MyGeomInit::MyGeomInit(const char *name, const char *title)
179 :TTask(name,title)
180{
181}
182
183void MyGeomInit::Exec(Option_t * /*option*/)
184{
185 printf("MyGeomInit executing\n");
186}
187
188////////////////////////////////////////////////////////////////////////////////
189
190MyMaterialInit::MyMaterialInit(const char *name, const char *title)
191 :TTask(name,title)
192{
193}
194
195void MyMaterialInit::Exec(Option_t * /*option*/)
196{
197 printf("MyMaterialInit executing\n");
198}
199
200////////////////////////////////////////////////////////////////////////////////
201
202MyTracker::MyTracker(const char *name, const char *title)
203 :TTask(name,title)
204{
205}
206
207void MyTracker::Exec(Option_t * /*option*/)
208{
209 printf("MyTracker executing\n");
210}
211
212////////////////////////////////////////////////////////////////////////////////
213
214MyRecTPC::MyRecTPC(const char *name, const char *title)
215 :TTask(name,title)
216{
217}
218
219void MyRecTPC::Exec(Option_t * /*option*/)
220{
221 printf("MyRecTPC executing\n");
222}
223
224////////////////////////////////////////////////////////////////////////////////
225
226MyRecITS::MyRecITS(const char *name, const char *title)
227 :TTask(name,title)
228{
229}
230
231void MyRecITS::Exec(Option_t * /*option*/)
232{
233 printf("MyRecITS executing\n");
234}
235
236////////////////////////////////////////////////////////////////////////////////
237
238MyRecMUON::MyRecMUON(const char *name, const char *title)
239 :TTask(name,title)
240{
241}
242
243void MyRecMUON::Exec(Option_t * /*option*/)
244{
245 printf("MyRecMUON executing\n");
246}
247
248////////////////////////////////////////////////////////////////////////////////
249
250MyRecPHOS::MyRecPHOS(const char *name, const char *title)
251 :TTask(name,title)
252{
253}
254
255void MyRecPHOS::Exec(Option_t * /*option*/)
256{
257 printf("MyRecPHOS executing\n");
258}
259
260////////////////////////////////////////////////////////////////////////////////
261
262MyRecRICH::MyRecRICH(const char *name, const char *title)
263 :TTask(name,title)
264{
265}
266
267void MyRecRICH::Exec(Option_t * /*option*/)
268{
269 printf("MyRecRICH executing\n");
270}
271
272////////////////////////////////////////////////////////////////////////////////
273
274MyRecTRD::MyRecTRD(const char *name, const char *title)
275 :TTask(name,title)
276{
277}
278
279void MyRecTRD::Exec(Option_t * /*option*/)
280{
281 printf("MyRecTRD executing\n");
282}
283
284////////////////////////////////////////////////////////////////////////////////
285
286MyRecGlobal::MyRecGlobal(const char *name, const char *title)
287 :TTask(name,title)
288{
289}
290
291void MyRecGlobal::Exec(Option_t * /*option*/)
292{
293 printf("MyRecGlobal executing\n");
294}
const char Option_t
Definition: RtypesCore.h:62
#define ClassDef(name, id)
Definition: Rtypes.h:324
TTask is a base class that can be used to build a complex tree of Tasks.
Definition: TTask.h:30
virtual void Exec(Option_t *option)
Dummy Execute.
Definition: TTask.cxx:248