1 | /* ======================================================================== *\
|
---|
2 | !
|
---|
3 | ! *
|
---|
4 | ! * This file is part of MARS, the MAGIC Analysis and Reconstruction
|
---|
5 | ! * Software. It is distributed to you in the hope that it can be a useful
|
---|
6 | ! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
|
---|
7 | ! * It is distributed WITHOUT ANY WARRANTY.
|
---|
8 | ! *
|
---|
9 | ! * Permission to use, copy, modify and distribute this software and its
|
---|
10 | ! * documentation for any purpose is hereby granted without fee,
|
---|
11 | ! * provided that the above copyright notice appear in all copies and
|
---|
12 | ! * that both that copyright notice and this permission notice appear
|
---|
13 | ! * in supporting documentation. It is provided "as is" without express
|
---|
14 | ! * or implied warranty.
|
---|
15 | ! *
|
---|
16 | !
|
---|
17 | !
|
---|
18 | ! Author(s): Markus Gaug 04/2004 <mailto:markus@ifae.es>
|
---|
19 | !
|
---|
20 | ! Copyright: MAGIC Software Development, 2000-2004
|
---|
21 | !
|
---|
22 | !
|
---|
23 | \* ======================================================================== */
|
---|
24 |
|
---|
25 | /////////////////////////////////////////////////////////////////////////////
|
---|
26 | //
|
---|
27 | // calibClasses
|
---|
28 | //
|
---|
29 | // This macro draws the schemes found in htmldoc/images/CalibClasses.gif
|
---|
30 | // and htmldoc/images/RelTimeClasses.gif
|
---|
31 | //
|
---|
32 | /////////////////////////////////////////////////////////////////////////////
|
---|
33 |
|
---|
34 | void calibClasses()
|
---|
35 | {
|
---|
36 |
|
---|
37 | const Float_t ell1x1 = 0.3;
|
---|
38 | const Float_t ell2x1 = 0.575;
|
---|
39 | const Float_t ell3x1 = 0.85;
|
---|
40 |
|
---|
41 | const Float_t ellr1 = 0.12;
|
---|
42 | const Float_t ellr2 = 0.035;
|
---|
43 |
|
---|
44 | const Float_t tex1x1 = 0.19;
|
---|
45 | const Float_t tex2x1 = 0.465;
|
---|
46 | const Float_t tex3x1 = 0.74;
|
---|
47 |
|
---|
48 |
|
---|
49 | const Float_t texsize = 0.0257913;
|
---|
50 | const Float_t texsize2 = 0.015;
|
---|
51 |
|
---|
52 | const Float_t arr1x1 = 0.3;
|
---|
53 | const Float_t arr2x1 = 0.575;
|
---|
54 | const Float_t arr3x1 = 0.85;
|
---|
55 |
|
---|
56 | const Float_t arrsize = 0.02;
|
---|
57 |
|
---|
58 | const Float_t pt1x1 = 0.175;
|
---|
59 | const Float_t pt2x1 = 0.45;
|
---|
60 | const Float_t pt3x1 = 0.725;
|
---|
61 |
|
---|
62 | const Float_t pt1x2 = 0.425;
|
---|
63 | const Float_t pt2x2 = 0.7;
|
---|
64 | const Float_t pt3x2 = 0.975;
|
---|
65 |
|
---|
66 | Float_t arry1 = 0.;
|
---|
67 | Float_t arry2 = 0.;
|
---|
68 | Float_t elly1 = 0.;
|
---|
69 | Float_t pty1 = 0.;
|
---|
70 | Float_t pty2 = 0.;
|
---|
71 | Float_t texy1 = 0.;
|
---|
72 | Float_t linex1 = 0.;
|
---|
73 | Float_t linex2 = 0.;
|
---|
74 | Float_t liney1 = 0.l;
|
---|
75 |
|
---|
76 | TCanvas *CalibClasses = new TCanvas("CalibClasses", "Calibration Classes",89,96,758,1051);
|
---|
77 | CalibClasses->Range(0,0,1,1);
|
---|
78 | CalibClasses->SetBorderSize(2);
|
---|
79 | CalibClasses->SetFrameFillColor(0);
|
---|
80 |
|
---|
81 | // First line:
|
---|
82 | TPaveText *pt = new TPaveText(0.375,0.895,0.785,0.95,"br");
|
---|
83 | pt->SetFillColor(18);
|
---|
84 | TText *text = pt->AddText("MRawEvtData");
|
---|
85 | pt->Draw();
|
---|
86 | tex = new TLatex(0.55,0.955,"C");
|
---|
87 | tex->SetTextSize(0.05);
|
---|
88 | tex->SetLineWidth(2);
|
---|
89 | tex->Draw();
|
---|
90 | tex = new TLatex(0.12,0.955,"P");
|
---|
91 | tex->SetTextSize(0.05);
|
---|
92 | tex->SetLineWidth(2);
|
---|
93 | tex->Draw();
|
---|
94 |
|
---|
95 | pt = new TPaveText(0.015,0.875,0.25,0.95,"br");
|
---|
96 | pt->SetFillColor(18);
|
---|
97 | text = pt->AddText("MPedestalCam:");
|
---|
98 | text = pt->AddText("ped, RMS, #Deltaped, #DeltaRMS");
|
---|
99 | text->SetTextColor(kBlue);
|
---|
100 | pt->Draw();
|
---|
101 |
|
---|
102 |
|
---|
103 | // Second line:
|
---|
104 | elly1 = 0.805;
|
---|
105 |
|
---|
106 | TEllipse *ellipse = new TEllipse(ell1x1,elly1,ellr1,ellr2,0,360,0);
|
---|
107 | ellipse->Draw();
|
---|
108 |
|
---|
109 | ellipse = new TEllipse(ell2x1,elly1,ellr1,ellr2,0,360,0);
|
---|
110 | ellipse->Draw();
|
---|
111 |
|
---|
112 | ellipse = new TEllipse(ell3x1,elly1,ellr1,ellr2,0,360,0);
|
---|
113 | ellipse->Draw();
|
---|
114 |
|
---|
115 | texy1 = 0.805;
|
---|
116 |
|
---|
117 | tex = new TLatex(tex1x1,texy1,"MExtractSignal:");
|
---|
118 | tex->SetTextSize(texsize);
|
---|
119 | tex->SetLineWidth(2);
|
---|
120 | tex->Draw();
|
---|
121 |
|
---|
122 | tex = new TLatex(tex2x1,texy1,"MExtractBlindPixel:");
|
---|
123 | tex->SetTextSize(texsize);
|
---|
124 | tex->SetLineWidth(2);
|
---|
125 | tex->Draw();
|
---|
126 | tex = new TLatex(tex3x1,texy1,"MExtractPINDiode:");
|
---|
127 | tex->SetTextSize(texsize);
|
---|
128 | tex->SetLineWidth(2);
|
---|
129 | tex->Draw();
|
---|
130 |
|
---|
131 | texy1 = 0.79;
|
---|
132 |
|
---|
133 | tex = new TLatex(tex1x1+0.02,texy1,"sum FADC slices, error??");
|
---|
134 | tex->SetTextSize(texsize2);
|
---|
135 | tex->SetTextColor(kRed);
|
---|
136 | tex->SetLineWidth(1);
|
---|
137 | tex->Draw();
|
---|
138 |
|
---|
139 | tex = new TLatex(tex2x1+0.02,texy1,"sum FADC slices");
|
---|
140 | tex->SetTextSize(texsize2);
|
---|
141 | tex->SetTextColor(kRed);
|
---|
142 | tex->SetLineWidth(1);
|
---|
143 | tex->Draw();
|
---|
144 | tex = new TLatex(tex3x1+0.02,texy1,"sum FADC slices");
|
---|
145 | tex->SetTextSize(texsize2);
|
---|
146 | tex->SetTextColor(kRed);
|
---|
147 | tex->SetLineWidth(1);
|
---|
148 | tex->Draw();
|
---|
149 |
|
---|
150 |
|
---|
151 | arry1 = 0.89;
|
---|
152 | arry2 = 0.84;
|
---|
153 |
|
---|
154 | TArrow *arrow = new TArrow(0.45, arry1,arr1x1,arry2,arrsize,"|>");
|
---|
155 | arrow->SetFillColor(1);
|
---|
156 | arrow->SetFillStyle(1001);
|
---|
157 | arrow->Draw();
|
---|
158 |
|
---|
159 | arrow = new TArrow(arr2x1,arry1,arr2x1,arry2,arrsize,"|>");
|
---|
160 | arrow->SetFillColor(1);
|
---|
161 | arrow->SetFillStyle(1001);
|
---|
162 | arrow->Draw();
|
---|
163 |
|
---|
164 | arrow = new TArrow(0.715, arry1,arr3x1,arry2,arrsize,"|>");
|
---|
165 | arrow->SetFillColor(1);
|
---|
166 | arrow->SetFillStyle(1001);
|
---|
167 | arrow->Draw();
|
---|
168 |
|
---|
169 | // Third line:
|
---|
170 | pty1 = 0.67;
|
---|
171 | pty2 = 0.73;
|
---|
172 |
|
---|
173 | pt = new TPaveText(pt1x1,pty1,pt1x2,pty2,"br");
|
---|
174 | pt->SetFillColor(18);
|
---|
175 | text = pt->AddText("MExtractedSignalCam");
|
---|
176 | pt->Draw();
|
---|
177 |
|
---|
178 | pt = new TPaveText(pt2x1,pty1,pt2x2,pty2,"br");
|
---|
179 | pt->SetFillColor(18);
|
---|
180 | text = pt->AddText("MExtractedSignalBlindPixel");
|
---|
181 | pt->Draw();
|
---|
182 |
|
---|
183 | pt = new TPaveText(pt3x1,pty1,pt3x2,pty2,"br");
|
---|
184 | pt->SetFillColor(18);
|
---|
185 | text = pt->AddText("MExtractedSignalPINDiode");
|
---|
186 | pt->Draw();
|
---|
187 |
|
---|
188 | arry1 = 0.77;
|
---|
189 | arry2 = 0.73;
|
---|
190 |
|
---|
191 | arrow = new TArrow(arr1x1,arry1,arr1x1,arry2,arrsize,"|>");
|
---|
192 | arrow->SetFillColor(1);
|
---|
193 | arrow->SetFillStyle(1001);
|
---|
194 | arrow->Draw();
|
---|
195 | arrow = new TArrow(arr2x1,arry1,arr2x1,arry2,arrsize,"|>");
|
---|
196 | arrow->SetFillColor(1);
|
---|
197 | arrow->SetFillStyle(1001);
|
---|
198 | arrow->Draw();
|
---|
199 | arrow = new TArrow(arr3x1,arry1,arr3x1,arry2,arrsize,"|>");
|
---|
200 | arrow->SetFillColor(1);
|
---|
201 | arrow->SetFillStyle(1001);
|
---|
202 | arrow->Draw();
|
---|
203 |
|
---|
204 |
|
---|
205 | // Fourth line:
|
---|
206 | elly1 = 0.6;
|
---|
207 |
|
---|
208 | TEllipse *ellipse = new TEllipse(ell1x1,elly1,ellr1,ellr2,0,360,0);
|
---|
209 | ellipse->Draw();
|
---|
210 |
|
---|
211 | ellipse = new TEllipse(ell2x1,elly1,ellr1,ellr2,0,360,0);
|
---|
212 | ellipse->Draw();
|
---|
213 |
|
---|
214 | ellipse = new TEllipse(ell3x1,elly1,ellr1,ellr2,0,360,0);
|
---|
215 | ellipse->Draw();
|
---|
216 |
|
---|
217 |
|
---|
218 |
|
---|
219 | texy1 = 0.6;
|
---|
220 |
|
---|
221 | tex = new TLatex(tex1x1,texy1,"MHCalibrationChargeCam:");
|
---|
222 | tex->SetTextSize(texsize2);
|
---|
223 | tex->SetLineWidth(2);
|
---|
224 | tex->Draw();
|
---|
225 | tex = new TLatex(tex2x1,texy1,"MHCalibrationChargeBlindPix:");
|
---|
226 | tex->SetTextSize(texsize2);
|
---|
227 | tex->SetLineWidth(2);
|
---|
228 | tex->Draw();
|
---|
229 | tex = new TLatex(tex3x1,texy1,"MHCalibrationChargePINDiode:");
|
---|
230 | tex->SetTextSize(texsize2);
|
---|
231 | tex->SetLineWidth(2);
|
---|
232 | tex->Draw();
|
---|
233 |
|
---|
234 | linex1 = 0.18;
|
---|
235 | linex2 = 0.08;
|
---|
236 |
|
---|
237 | TLine *line = new TLine(linex1,texy1,linex2,texy1);
|
---|
238 | line->Draw();
|
---|
239 |
|
---|
240 | arrow = new TArrow(linex2,texy1,linex2,0.29,arrsize,"|>");
|
---|
241 | arrow->SetFillColor(1);
|
---|
242 | arrow->SetFillStyle(1001);
|
---|
243 | arrow->Draw();
|
---|
244 |
|
---|
245 | tex = new TLatex(linex2-0.01,0.35,"Pulse not in extraction window");
|
---|
246 | tex->SetTextSize(texsize2+0.008);
|
---|
247 | tex->SetTextAngle(90);
|
---|
248 | tex->SetTextColor(006);
|
---|
249 | tex->SetLineWidth(1);
|
---|
250 | tex->Draw();
|
---|
251 |
|
---|
252 | texy1 = 0.59;
|
---|
253 |
|
---|
254 | tex = new TLatex(tex1x1+0.01,texy1,"Fit High-, Low-Gain, each pixel");
|
---|
255 | tex->SetTextSize(texsize2);
|
---|
256 | tex->SetTextColor(kRed);
|
---|
257 | tex->SetLineWidth(1);
|
---|
258 | tex->Draw();
|
---|
259 | tex = new TLatex(tex1x1+0.01,texy1-0.01,"Fast Fourier Analysis");
|
---|
260 | tex->SetTextSize(texsize2);
|
---|
261 | tex->SetTextColor(kRed);
|
---|
262 | tex->SetLineWidth(1);
|
---|
263 | tex->Draw();
|
---|
264 |
|
---|
265 |
|
---|
266 |
|
---|
267 | tex = new TLatex(tex2x1+0.01,texy1,"Fit Single-Phe spectrum");
|
---|
268 | tex->SetTextSize(texsize2);
|
---|
269 | tex->SetTextColor(kRed);
|
---|
270 | tex->SetLineWidth(1);
|
---|
271 | tex->Draw();
|
---|
272 | tex = new TLatex(tex3x1+0.01,texy1,"Fit Charge distribution");
|
---|
273 | tex->SetTextSize(texsize2);
|
---|
274 | tex->SetTextColor(kRed);
|
---|
275 | tex->SetLineWidth(1);
|
---|
276 | tex->Draw();
|
---|
277 | tex = new TLatex(tex3x1+0.01,texy1-0.01,"Fast Fourier Analysis");
|
---|
278 | tex->SetTextSize(texsize2);
|
---|
279 | tex->SetTextColor(kRed);
|
---|
280 | tex->SetLineWidth(1);
|
---|
281 | tex->Draw();
|
---|
282 |
|
---|
283 |
|
---|
284 | arry1 = 0.67;
|
---|
285 | arry2 = 0.63;
|
---|
286 |
|
---|
287 | arrow = new TArrow(arr1x1,arry1,arr1x1,arry2,arrsize,"|>");
|
---|
288 | arrow->SetFillColor(1);
|
---|
289 | arrow->SetFillStyle(1001);
|
---|
290 | arrow->Draw();
|
---|
291 | arrow = new TArrow(arr2x1,arry1,arr2x1,arry2,arrsize,"|>");
|
---|
292 | arrow->SetFillColor(1);
|
---|
293 | arrow->SetFillStyle(1001);
|
---|
294 | arrow->Draw();
|
---|
295 | arrow = new TArrow(arr3x1,arry1,arr3x1,arry2,arrsize,"|>");
|
---|
296 | arrow->SetFillColor(1);
|
---|
297 | arrow->SetFillStyle(1001);
|
---|
298 | arrow->Draw();
|
---|
299 |
|
---|
300 | // Fifth line:
|
---|
301 | pty1 = 0.465;
|
---|
302 | pty2 = 0.525;
|
---|
303 |
|
---|
304 | pt = new TPaveText(pt1x1,pty1-0.03,pt1x2,pty2,"br");
|
---|
305 | pt->SetFillColor(18);
|
---|
306 | text = pt->AddText("MCalibrationChargeCam:");
|
---|
307 | pt->Draw();
|
---|
308 | text = pt->AddText("Conv. FADC to Phe's, error");
|
---|
309 | text->SetTextColor(kBlue);
|
---|
310 | pt->Draw();
|
---|
311 | text = pt->AddText("Total F-Factor to Photons");
|
---|
312 | text->SetTextColor(kBlue);
|
---|
313 | pt->Draw();
|
---|
314 |
|
---|
315 | pt = new TPaveText(pt2x1,pty1,pt2x2,pty2,"br");
|
---|
316 | pt->SetFillColor(18);
|
---|
317 | text = pt->AddText("MCalibrationChargeBlindPix");
|
---|
318 | pt->Draw();
|
---|
319 |
|
---|
320 | pt = new TPaveText(pt3x1,pty1,pt3x2,pty2,"br");
|
---|
321 | pt->SetFillColor(18);
|
---|
322 | text = pt->AddText("MCalibrationChargePINDiode");
|
---|
323 | pt->Draw();
|
---|
324 |
|
---|
325 |
|
---|
326 | arry1 = 0.565;
|
---|
327 | arry2 = 0.525;
|
---|
328 |
|
---|
329 | arrow = new TArrow(arr1x1,arry1,arr1x1,arry2,arrsize,"|>");
|
---|
330 | arrow->SetFillColor(1);
|
---|
331 | arrow->SetFillStyle(1001);
|
---|
332 | arrow->Draw();
|
---|
333 | arrow = new TArrow(arr2x1,arry1,arr2x1,arry2,arrsize,"|>");
|
---|
334 | arrow->SetFillColor(1);
|
---|
335 | arrow->SetFillStyle(1001);
|
---|
336 | arrow->Draw();
|
---|
337 | arrow = new TArrow(arr3x1,arry1,arr3x1,arry2,arrsize,"|>");
|
---|
338 | arrow->SetFillColor(1);
|
---|
339 | arrow->SetFillStyle(1001);
|
---|
340 | arrow->Draw();
|
---|
341 |
|
---|
342 |
|
---|
343 | // Sixth line:
|
---|
344 | Float_t nellx1 = 0.39;
|
---|
345 | elly1 = 0.38;
|
---|
346 |
|
---|
347 | ellipse = new TEllipse(0.57,elly1,0.235,0.04,0,360,0);
|
---|
348 | ellipse->Draw();
|
---|
349 |
|
---|
350 | tex = new TLatex(nellx1,0.38,"MCalibrationChargeCalc:");
|
---|
351 | tex->SetTextSize(0.0328253);
|
---|
352 | tex->SetLineWidth(2);
|
---|
353 | tex->Draw();
|
---|
354 |
|
---|
355 | tex = new TLatex(nellx1+0.02,0.365,"Low Gain Ped., Red. #sigma's, Nr. Phe's, total F-Factor");
|
---|
356 | tex->SetTextSize(texsize2);
|
---|
357 | tex->SetTextColor(kRed);
|
---|
358 | tex->SetLineWidth(1);
|
---|
359 | tex->Draw();
|
---|
360 |
|
---|
361 | tex = new TLatex(nellx1+0.02,0.355,"#gamma-fluxes: F-Factor, BlindPixel, PIN Diode Method");
|
---|
362 | tex->SetTextSize(texsize2);
|
---|
363 | tex->SetTextColor(kRed);
|
---|
364 | tex->SetLineWidth(1);
|
---|
365 | tex->Draw();
|
---|
366 |
|
---|
367 |
|
---|
368 | arry1 = 0.46;
|
---|
369 | arry2 = 0.42;
|
---|
370 |
|
---|
371 | arrow = new TArrow(arr1x1,0.435,arr1x1+0.1,arry2-0.01,arrsize,"|>");
|
---|
372 | arrow->SetFillColor(1);
|
---|
373 | arrow->SetFillStyle(1001);
|
---|
374 | arrow->Draw();
|
---|
375 | arrow = new TArrow(arr2x1,arry1,arr2x1,arry2,arrsize,"|>");
|
---|
376 | arrow->SetFillColor(1);
|
---|
377 | arrow->SetFillStyle(1001);
|
---|
378 | arrow->Draw();
|
---|
379 | arrow = new TArrow(arr3x1,arry1,arr3x1-0.1,arry2-0.01,arrsize,"|>");
|
---|
380 | arrow->SetFillColor(1);
|
---|
381 | arrow->SetFillStyle(1001);
|
---|
382 | arrow->Draw();
|
---|
383 |
|
---|
384 | linex1 = 0.135;
|
---|
385 | liney1 = 0.38;
|
---|
386 |
|
---|
387 | TLine *line = new TLine(linex1,0.87,linex1,liney1);
|
---|
388 | line->Draw();
|
---|
389 |
|
---|
390 | arrow = new TArrow(linex1,liney1,0.335544,liney1,arrsize,"|>");
|
---|
391 | arrow->SetFillColor(1);
|
---|
392 | arrow->SetFillStyle(1001);
|
---|
393 | arrow->Draw();
|
---|
394 |
|
---|
395 | arrow = new TArrow(0.38,0.402,0.27,0.433,arrsize,"|>");
|
---|
396 | arrow->SetFillColor(1);
|
---|
397 | arrow->SetFillStyle(1001);
|
---|
398 | arrow->Draw();
|
---|
399 |
|
---|
400 |
|
---|
401 | arrow = new TArrow(0.35,0.365,0.15,0.29,arrsize,"|>");
|
---|
402 | arrow->SetFillColor(1);
|
---|
403 | arrow->SetFillStyle(1001);
|
---|
404 | arrow->Draw();
|
---|
405 |
|
---|
406 | tex = new TLatex(0.2,0.29,"Deviating Nr. Phe's");
|
---|
407 | tex->SetTextSize(texsize2+0.006);
|
---|
408 | tex->SetTextAngle(27);
|
---|
409 | tex->SetTextColor(006);
|
---|
410 | tex->SetLineWidth(1);
|
---|
411 | tex->Draw();
|
---|
412 |
|
---|
413 | tex = new TLatex(0.19,0.325,"Oscillations");
|
---|
414 | tex->SetTextSize(texsize2+0.006);
|
---|
415 | tex->SetTextAngle(27);
|
---|
416 | tex->SetTextColor(006);
|
---|
417 | tex->SetLineWidth(1);
|
---|
418 | tex->Draw();
|
---|
419 |
|
---|
420 | tex = new TLatex(0.195,0.31,"Absurd fit results");
|
---|
421 | tex->SetTextSize(texsize2+0.006);
|
---|
422 | tex->SetTextAngle(27);
|
---|
423 | tex->SetTextColor(006);
|
---|
424 | tex->SetLineWidth(1);
|
---|
425 | tex->Draw();
|
---|
426 |
|
---|
427 | // seventh line
|
---|
428 | pty1 = 0.215;
|
---|
429 | pty2 = 0.29;
|
---|
430 |
|
---|
431 | pt = new TPaveText(0.015,pty1,0.25,pty2,"br");
|
---|
432 | pt->SetFillColor(18);
|
---|
433 | text = pt->AddText("MBadPixelsCam:");
|
---|
434 | text = pt->AddText("kUnsuitableRun");
|
---|
435 | text->SetTextColor(kBlue);
|
---|
436 | text = pt->AddText("kUnreliableRun");
|
---|
437 | text->SetTextColor(kBlue);
|
---|
438 | pt->Draw();
|
---|
439 |
|
---|
440 |
|
---|
441 | pt = new TPaveText(0.3,pty1,0.85,pty2,"br");
|
---|
442 | pt->SetFillColor(18);
|
---|
443 | text = pt->AddText("MCalibrationQECam:");
|
---|
444 | pt->Draw();
|
---|
445 | text = pt->AddText("QE: Green, Blue, UV, CT1, av. Cascades(cos#theta), error");
|
---|
446 | text->SetTextColor(kBlue);
|
---|
447 | pt->Draw();
|
---|
448 | text = pt->AddText("QE: F-Factor, Blind Pixel, PIN Diode, Combined Method");
|
---|
449 | text->SetTextColor(kBlue);
|
---|
450 | pt->Draw();
|
---|
451 |
|
---|
452 |
|
---|
453 | arry1 = 0.34;
|
---|
454 | arry2 = 0.3;
|
---|
455 |
|
---|
456 | arrow = new TArrow(arr1x1+0.1,arry1+0.01,arr1x1+0.1,arry2-0.01,arrsize,"|>");
|
---|
457 | arrow->SetFillColor(1);
|
---|
458 | arrow->SetFillStyle(1001);
|
---|
459 | arrow->Draw();
|
---|
460 | arrow = new TArrow(arr2x1,arry1,arr2x1,arry2-0.01,arrsize,"|>");
|
---|
461 | arrow->SetFillColor(1);
|
---|
462 | arrow->SetFillStyle(1001);
|
---|
463 | arrow->Draw();
|
---|
464 | arrow = new TArrow(arr3x1-0.1,arry1+0.01,arr3x1-0.1,arry2-0.01,arrsize,"|>");
|
---|
465 | arrow->SetFillColor(1);
|
---|
466 | arrow->SetFillStyle(1001);
|
---|
467 | arrow->Draw();
|
---|
468 |
|
---|
469 | // eightth line:
|
---|
470 |
|
---|
471 | Float_t nellx1 = 0.39;
|
---|
472 | elly1 = 0.13;
|
---|
473 |
|
---|
474 | ellipse = new TEllipse(0.57,elly1,0.235,0.04,0,360,0);
|
---|
475 | ellipse->Draw();
|
---|
476 |
|
---|
477 | tex = new TLatex(nellx1,elly1,"MCalibrate:");
|
---|
478 | tex->SetTextSize(0.0328253);
|
---|
479 | tex->SetLineWidth(2);
|
---|
480 | tex->Draw();
|
---|
481 |
|
---|
482 | tex = new TLatex(nellx1+0.02,elly1-0.01,"Sum FADC slices to Phe's");
|
---|
483 | tex->SetTextSize(texsize2);
|
---|
484 | tex->SetTextColor(kRed);
|
---|
485 | tex->SetLineWidth(1);
|
---|
486 | tex->Draw();
|
---|
487 |
|
---|
488 | tex = new TLatex(nellx1+0.02,elly1-0.02,"Phe's to photons (cos#theta), #Delta(photons)");
|
---|
489 | tex->SetTextSize(texsize2);
|
---|
490 | tex->SetTextColor(kRed);
|
---|
491 | tex->SetLineWidth(1);
|
---|
492 | tex->Draw();
|
---|
493 |
|
---|
494 | arry1 = 0.21;
|
---|
495 | arry2 = 0.17;
|
---|
496 |
|
---|
497 | arrow = new TArrow(arr2x1,arry1,arr2x1,arry2,arrsize,"|>");
|
---|
498 | arrow->SetFillColor(1);
|
---|
499 | arrow->SetFillStyle(1001);
|
---|
500 | arrow->Draw();
|
---|
501 |
|
---|
502 | Float_t linex1 = 0.27;
|
---|
503 | Float_t liney1 = 0.13;
|
---|
504 |
|
---|
505 | TLine *line = new TLine(linex1,0.435,linex1,liney1);
|
---|
506 | line->Draw();
|
---|
507 |
|
---|
508 | arrow = new TArrow(linex1,liney1,0.335544,liney1,arrsize,"|>");
|
---|
509 | arrow->SetFillColor(1);
|
---|
510 | arrow->SetFillStyle(1001);
|
---|
511 | arrow->Draw();
|
---|
512 |
|
---|
513 | linex1 = 0.15;
|
---|
514 | liney1 = 0.05;
|
---|
515 |
|
---|
516 | TLine *line = new TLine(linex1,0.215,linex1,liney1);
|
---|
517 | line->Draw();
|
---|
518 |
|
---|
519 | TLine *line = new TLine(linex1,liney1,arr2x1,liney1);
|
---|
520 | line->Draw();
|
---|
521 |
|
---|
522 | arrow = new TArrow(arr2x1,liney1,arr2x1,0.09,arrsize,"|>");
|
---|
523 | arrow->SetFillColor(1);
|
---|
524 | arrow->SetFillStyle(1001);
|
---|
525 | arrow->Draw();
|
---|
526 |
|
---|
527 |
|
---|
528 | CalibClasses->Modified();
|
---|
529 | CalibClasses->cd();
|
---|
530 |
|
---|
531 | CalibClasses->SaveAs("htmldoc/images/CalibClasses.gif");
|
---|
532 |
|
---|
533 | //
|
---|
534 | // Relative Time classes
|
---|
535 | //
|
---|
536 |
|
---|
537 | TCanvas *RelTimeClasses = new TCanvas("RelTimeClasses", "Relative Time Calibration Classes",89,96,758,1051);
|
---|
538 | RelTimeClasses->Range(0,0,1,1);
|
---|
539 | RelTimeClasses->SetBorderSize(2);
|
---|
540 | RelTimeClasses->SetFrameFillColor(0);
|
---|
541 |
|
---|
542 | // First line:
|
---|
543 | TPaveText *pt = new TPaveText(0.375,0.895,0.785,0.95,"br");
|
---|
544 | pt->SetFillColor(18);
|
---|
545 | TText *text = pt->AddText("MRawEvtData");
|
---|
546 | pt->Draw();
|
---|
547 | tex = new TLatex(0.55,0.955,"C");
|
---|
548 | tex->SetTextSize(0.05);
|
---|
549 | tex->SetLineWidth(2);
|
---|
550 | tex->Draw();
|
---|
551 |
|
---|
552 |
|
---|
553 | // Second line:
|
---|
554 | elly1 = 0.805;
|
---|
555 |
|
---|
556 | ellipse = new TEllipse(ell2x1,elly1,ellr1,ellr2,0,360,0);
|
---|
557 | ellipse->Draw();
|
---|
558 |
|
---|
559 | texy1 = 0.805;
|
---|
560 |
|
---|
561 | tex = new TLatex(tex2x1,texy1,"MArrivalTimeCalc:");
|
---|
562 | tex->SetTextSize(texsize);
|
---|
563 | tex->SetLineWidth(2);
|
---|
564 | tex->Draw();
|
---|
565 |
|
---|
566 | texy1 = 0.79;
|
---|
567 |
|
---|
568 | tex = new TLatex(tex2x1+0.02,texy1,"Abs. Arrival Time");
|
---|
569 | tex->SetTextSize(texsize2);
|
---|
570 | tex->SetTextColor(kRed);
|
---|
571 | tex->SetLineWidth(1);
|
---|
572 | tex->Draw();
|
---|
573 |
|
---|
574 | arry1 = 0.89;
|
---|
575 | arry2 = 0.84;
|
---|
576 |
|
---|
577 | arrow = new TArrow(arr2x1,arry1,arr2x1,arry2,arrsize,"|>");
|
---|
578 | arrow->SetFillColor(1);
|
---|
579 | arrow->SetFillStyle(1001);
|
---|
580 | arrow->Draw();
|
---|
581 |
|
---|
582 |
|
---|
583 | // Third line:
|
---|
584 | pty1 = 0.67;
|
---|
585 | pty2 = 0.73;
|
---|
586 |
|
---|
587 | pt = new TPaveText(pt2x1,pty1,pt2x2,pty2,"br");
|
---|
588 | pt->SetFillColor(18);
|
---|
589 | text = pt->AddText("MArrivalTimeCam");
|
---|
590 | pt->Draw();
|
---|
591 |
|
---|
592 | arry1 = 0.77;
|
---|
593 | arry2 = 0.73;
|
---|
594 |
|
---|
595 | arrow = new TArrow(arr2x1,arry1,arr2x1,arry2,arrsize,"|>");
|
---|
596 | arrow->SetFillColor(1);
|
---|
597 | arrow->SetFillStyle(1001);
|
---|
598 | arrow->Draw();
|
---|
599 |
|
---|
600 | // Fourth line:
|
---|
601 | elly1 = 0.6;
|
---|
602 |
|
---|
603 | TEllipse *ellipse = new TEllipse(ell2x1,elly1,0.235,0.04,0,360,0);
|
---|
604 | ellipse->Draw();
|
---|
605 |
|
---|
606 | texy1 = 0.6;
|
---|
607 |
|
---|
608 | tex = new TLatex(tex2x1-0.05,texy1,"MHCalibrationRelTimeCam:");
|
---|
609 | tex->SetTextSize(texsize);
|
---|
610 | tex->SetLineWidth(2);
|
---|
611 | tex->Draw();
|
---|
612 |
|
---|
613 |
|
---|
614 | arrow = new TArrow(0.35,0.465,0.15,0.39,arrsize,"|>");
|
---|
615 | arrow->SetFillColor(1);
|
---|
616 | arrow->SetFillStyle(1001);
|
---|
617 | arrow->Draw();
|
---|
618 |
|
---|
619 | tex = new TLatex(0.17,0.425,"Oscillations");
|
---|
620 | tex->SetTextSize(texsize2+0.006);
|
---|
621 | tex->SetTextAngle(27);
|
---|
622 | tex->SetTextColor(006);
|
---|
623 | tex->SetLineWidth(1);
|
---|
624 | tex->Draw();
|
---|
625 |
|
---|
626 | tex = new TLatex(0.175,0.41,"Absurd results");
|
---|
627 | tex->SetTextSize(texsize2+0.006);
|
---|
628 | tex->SetTextAngle(27);
|
---|
629 | tex->SetTextColor(006);
|
---|
630 | tex->SetLineWidth(1);
|
---|
631 | tex->Draw();
|
---|
632 |
|
---|
633 | // seventh line
|
---|
634 | pty1 = 0.315;
|
---|
635 | pty2 = 0.39;
|
---|
636 |
|
---|
637 | pt = new TPaveText(0.015,pty1,0.25,pty2,"br");
|
---|
638 | pt->SetFillColor(18);
|
---|
639 | text = pt->AddText("MBadPixelsCam:");
|
---|
640 | text = pt->AddText("kUnreliableRun");
|
---|
641 | text->SetTextColor(kBlue);
|
---|
642 | pt->Draw();
|
---|
643 |
|
---|
644 | texy1 = 0.59;
|
---|
645 |
|
---|
646 | tex = new TLatex(tex2x1-0.04,texy1,"Calculate Rel. Arrival Times");
|
---|
647 | tex->SetTextSize(texsize2);
|
---|
648 | tex->SetTextColor(kRed);
|
---|
649 | tex->SetLineWidth(1);
|
---|
650 | tex->Draw();
|
---|
651 | tex = new TLatex(tex2x1-0.04,texy1-0.01," (w.r.t. pixel 1 software idx)");
|
---|
652 | tex->SetTextSize(texsize2);
|
---|
653 | tex->SetTextColor(kRed);
|
---|
654 | tex->SetLineWidth(1);
|
---|
655 | tex->Draw();
|
---|
656 |
|
---|
657 | arry1 = 0.67;
|
---|
658 | arry2 = 0.63;
|
---|
659 |
|
---|
660 | arrow = new TArrow(arr2x1,arry1,arr2x1,arry2,arrsize,"|>");
|
---|
661 | arrow->SetFillColor(1);
|
---|
662 | arrow->SetFillStyle(1001);
|
---|
663 | arrow->Draw();
|
---|
664 |
|
---|
665 | arry1 = 0.56;
|
---|
666 | arry2 = 0.52;
|
---|
667 |
|
---|
668 | arrow = new TArrow(arr2x1,arry1,arr2x1,arry2,arrsize,"|>");
|
---|
669 | arrow->SetFillColor(1);
|
---|
670 | arrow->SetFillStyle(1001);
|
---|
671 | arrow->Draw();
|
---|
672 |
|
---|
673 | // Fifth line:
|
---|
674 | pty1 = 0.44;
|
---|
675 | pty2 = 0.52;
|
---|
676 |
|
---|
677 |
|
---|
678 | pt = new TPaveText(0.3,pty1,0.85,pty2,"br");
|
---|
679 | pt->SetFillColor(18);
|
---|
680 | text = pt->AddText("MCalibrationRelTimeCam:");
|
---|
681 | pt->Draw();
|
---|
682 | text = pt->AddText("Offset, Resolution, errors");
|
---|
683 | text->SetTextColor(kBlue);
|
---|
684 | pt->Draw();
|
---|
685 |
|
---|
686 |
|
---|
687 |
|
---|
688 | // eightth line:
|
---|
689 |
|
---|
690 | Float_t nellx1 = 0.39;
|
---|
691 | elly1 = 0.36;
|
---|
692 |
|
---|
693 | ellipse = new TEllipse(0.57,elly1,0.235,0.04,0,360,0);
|
---|
694 | ellipse->Draw();
|
---|
695 |
|
---|
696 | tex = new TLatex(nellx1,elly1,"MCalibrateTime:");
|
---|
697 | tex->SetTextSize(0.0328253);
|
---|
698 | tex->SetLineWidth(2);
|
---|
699 | tex->Draw();
|
---|
700 |
|
---|
701 | tex = new TLatex(nellx1+0.02,elly1-0.02,"Offset correction");
|
---|
702 | tex->SetTextSize(texsize);
|
---|
703 | tex->SetTextColor(kRed);
|
---|
704 | tex->SetLineWidth(1);
|
---|
705 | tex->Draw();
|
---|
706 |
|
---|
707 | arry1 = 0.44;
|
---|
708 | arry2 = 0.4;
|
---|
709 |
|
---|
710 | arrow = new TArrow(arr2x1,arry1,arr2x1,arry2,arrsize,"|>");
|
---|
711 | arrow->SetFillColor(1);
|
---|
712 | arrow->SetFillStyle(1001);
|
---|
713 | arrow->Draw();
|
---|
714 |
|
---|
715 | Float_t linex1 = 0.25;
|
---|
716 | Float_t liney1 = 0.36;
|
---|
717 |
|
---|
718 | arrow = new TArrow(linex1,liney1,0.335,liney1,arrsize,"|>");
|
---|
719 | arrow->SetFillColor(1);
|
---|
720 | arrow->SetFillStyle(1001);
|
---|
721 | arrow->Draw();
|
---|
722 |
|
---|
723 | RelTimeClasses->Modified();
|
---|
724 | RelTimeClasses->cd();
|
---|
725 |
|
---|
726 | RelTimeClasses->SaveAs("htmldoc/images/RelTimeClasses.gif");
|
---|
727 |
|
---|
728 |
|
---|
729 | }
|
---|