Logo ROOT   6.14/05
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 MyRun::MyRun(const char *name, const char *title)
155  :TTask(name,title)
156 {
157 }
158 
159 void MyRun::Exec(Option_t * /*option*/)
160 {
161  printf("MyRun executing\n");
162 }
163 
164 ////////////////////////////////////////////////////////////////////////////////
165 
166 MyEvent::MyEvent(const char *name, const char *title)
167  :TTask(name,title)
168 {
169 }
170 
171 void MyEvent::Exec(Option_t * /*option*/)
172 {
173  printf("MyEvent executing\n");
174 }
175 
176 ////////////////////////////////////////////////////////////////////////////////
177 
178 MyGeomInit::MyGeomInit(const char *name, const char *title)
179  :TTask(name,title)
180 {
181 }
182 
183 void MyGeomInit::Exec(Option_t * /*option*/)
184 {
185  printf("MyGeomInit executing\n");
186 }
187 
188 ////////////////////////////////////////////////////////////////////////////////
189 
190 MyMaterialInit::MyMaterialInit(const char *name, const char *title)
191  :TTask(name,title)
192 {
193 }
194 
195 void MyMaterialInit::Exec(Option_t * /*option*/)
196 {
197  printf("MyMaterialInit executing\n");
198 }
199 
200 ////////////////////////////////////////////////////////////////////////////////
201 
202 MyTracker::MyTracker(const char *name, const char *title)
203  :TTask(name,title)
204 {
205 }
206 
207 void MyTracker::Exec(Option_t * /*option*/)
208 {
209  printf("MyTracker executing\n");
210 }
211 
212 ////////////////////////////////////////////////////////////////////////////////
213 
214 MyRecTPC::MyRecTPC(const char *name, const char *title)
215  :TTask(name,title)
216 {
217 }
218 
219 void MyRecTPC::Exec(Option_t * /*option*/)
220 {
221  printf("MyRecTPC executing\n");
222 }
223 
224 ////////////////////////////////////////////////////////////////////////////////
225 
226 MyRecITS::MyRecITS(const char *name, const char *title)
227  :TTask(name,title)
228 {
229 }
230 
231 void MyRecITS::Exec(Option_t * /*option*/)
232 {
233  printf("MyRecITS executing\n");
234 }
235 
236 ////////////////////////////////////////////////////////////////////////////////
237 
238 MyRecMUON::MyRecMUON(const char *name, const char *title)
239  :TTask(name,title)
240 {
241 }
242 
243 void MyRecMUON::Exec(Option_t * /*option*/)
244 {
245  printf("MyRecMUON executing\n");
246 }
247 
248 ////////////////////////////////////////////////////////////////////////////////
249 
250 MyRecPHOS::MyRecPHOS(const char *name, const char *title)
251  :TTask(name,title)
252 {
253 }
254 
255 void MyRecPHOS::Exec(Option_t * /*option*/)
256 {
257  printf("MyRecPHOS executing\n");
258 }
259 
260 ////////////////////////////////////////////////////////////////////////////////
261 
262 MyRecRICH::MyRecRICH(const char *name, const char *title)
263  :TTask(name,title)
264 {
265 }
266 
267 void MyRecRICH::Exec(Option_t * /*option*/)
268 {
269  printf("MyRecRICH executing\n");
270 }
271 
272 ////////////////////////////////////////////////////////////////////////////////
273 
274 MyRecTRD::MyRecTRD(const char *name, const char *title)
275  :TTask(name,title)
276 {
277 }
278 
279 void MyRecTRD::Exec(Option_t * /*option*/)
280 {
281  printf("MyRecTRD executing\n");
282 }
283 
284 ////////////////////////////////////////////////////////////////////////////////
285 
286 MyRecGlobal::MyRecGlobal(const char *name, const char *title)
287  :TTask(name,title)
288 {
289 }
290 
291 void MyRecGlobal::Exec(Option_t * /*option*/)
292 {
293  printf("MyRecGlobal executing\n");
294 }
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:320
virtual void Exec(Option_t *option)
Dummy Execute.
Definition: TTask.cxx:248
char name[80]
Definition: TGX11.cxx:109