Logo ROOT   6.10/09
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 
13 class MyRun : public TTask {
14 
15 public:
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 
24 class MyEvent : public TTask {
25 
26 public:
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 
35 class MyGeomInit : public TTask {
36 
37 public:
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 
46 class MyMaterialInit : public TTask {
47 
48 public:
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 
57 class MyTracker : public TTask {
58 
59 public:
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 
68 class MyRecTPC : public TTask {
69 
70 public:
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 
80 class MyRecITS : public TTask {
81 
82 public:
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 
92 class MyRecMUON : public TTask {
93 
94 public:
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 
104 class MyRecPHOS : public TTask {
105 
106 public:
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 
116 class MyRecRICH : public TTask {
117 
118 public:
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 
128 class MyRecTRD : public TTask {
129 
130 public:
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 
140 class MyRecGlobal : public TTask {
141 
142 public:
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 
154 ClassImp(MyRun)
155 
156 MyRun::MyRun(const char *name, const char *title)
157  :TTask(name,title)
158 {
159 }
160 
161 void MyRun::Exec(Option_t * /*option*/)
162 {
163  printf("MyRun executing\n");
164 }
165 
166 ////////////////////////////////////////////////////////////////////////////////
167 
168 ClassImp(MyEvent)
169 
170 MyEvent::MyEvent(const char *name, const char *title)
171  :TTask(name,title)
172 {
173 }
174 
175 void MyEvent::Exec(Option_t * /*option*/)
176 {
177  printf("MyEvent executing\n");
178 }
179 
180 ////////////////////////////////////////////////////////////////////////////////
181 
182 ClassImp(MyGeomInit)
183 
184 MyGeomInit::MyGeomInit(const char *name, const char *title)
185  :TTask(name,title)
186 {
187 }
188 
189 void MyGeomInit::Exec(Option_t * /*option*/)
190 {
191  printf("MyGeomInit executing\n");
192 }
193 
194 ////////////////////////////////////////////////////////////////////////////////
195 
196 ClassImp(MyMaterialInit)
197 
198 MyMaterialInit::MyMaterialInit(const char *name, const char *title)
199  :TTask(name,title)
200 {
201 }
202 
203 void MyMaterialInit::Exec(Option_t * /*option*/)
204 {
205  printf("MyMaterialInit executing\n");
206 }
207 
208 ////////////////////////////////////////////////////////////////////////////////
209 
210 ClassImp(MyTracker)
211 
212 MyTracker::MyTracker(const char *name, const char *title)
213  :TTask(name,title)
214 {
215 }
216 
217 void MyTracker::Exec(Option_t * /*option*/)
218 {
219  printf("MyTracker executing\n");
220 }
221 
222 ////////////////////////////////////////////////////////////////////////////////
223 
224 ClassImp(MyRecTPC)
225 
226 MyRecTPC::MyRecTPC(const char *name, const char *title)
227  :TTask(name,title)
228 {
229 }
230 
231 void MyRecTPC::Exec(Option_t * /*option*/)
232 {
233  printf("MyRecTPC executing\n");
234 }
235 
236 ////////////////////////////////////////////////////////////////////////////////
237 
238 ClassImp(MyRecITS)
239 
240 MyRecITS::MyRecITS(const char *name, const char *title)
241  :TTask(name,title)
242 {
243 }
244 
245 void MyRecITS::Exec(Option_t * /*option*/)
246 {
247  printf("MyRecITS executing\n");
248 }
249 
250 ////////////////////////////////////////////////////////////////////////////////
251 
252 ClassImp(MyRecMUON)
253 
254 MyRecMUON::MyRecMUON(const char *name, const char *title)
255  :TTask(name,title)
256 {
257 }
258 
259 void MyRecMUON::Exec(Option_t * /*option*/)
260 {
261  printf("MyRecMUON executing\n");
262 }
263 
264 ////////////////////////////////////////////////////////////////////////////////
265 
266 ClassImp(MyRecPHOS)
267 
268 MyRecPHOS::MyRecPHOS(const char *name, const char *title)
269  :TTask(name,title)
270 {
271 }
272 
273 void MyRecPHOS::Exec(Option_t * /*option*/)
274 {
275  printf("MyRecPHOS executing\n");
276 }
277 
278 ////////////////////////////////////////////////////////////////////////////////
279 
280 ClassImp(MyRecRICH)
281 
282 MyRecRICH::MyRecRICH(const char *name, const char *title)
283  :TTask(name,title)
284 {
285 }
286 
287 void MyRecRICH::Exec(Option_t * /*option*/)
288 {
289  printf("MyRecRICH executing\n");
290 }
291 
292 ////////////////////////////////////////////////////////////////////////////////
293 
294 ClassImp(MyRecTRD)
295 
296 MyRecTRD::MyRecTRD(const char *name, const char *title)
297  :TTask(name,title)
298 {
299 }
300 
301 void MyRecTRD::Exec(Option_t * /*option*/)
302 {
303  printf("MyRecTRD executing\n");
304 }
305 
306 ////////////////////////////////////////////////////////////////////////////////
307 
308 ClassImp(MyRecGlobal)
309 
310 MyRecGlobal::MyRecGlobal(const char *name, const char *title)
311  :TTask(name,title)
312 {
313 }
314 
315 void MyRecGlobal::Exec(Option_t * /*option*/)
316 {
317  printf("MyRecGlobal executing\n");
318 }
const char Option_t
Definition: RtypesCore.h:62
TTask is a base class that can be used to build a complex tree of Tasks.
Definition: TTask.h:30
#define ClassDef(name, id)
Definition: Rtypes.h:297
virtual void Exec(Option_t *option)
Dummy Execute.
Definition: TTask.cxx:248
#define ClassImp(name)
Definition: Rtypes.h:336