Changeset 3729 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 04/14/04 11:47:26 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/calibClasses.C
r3709 r3729 64 64 65 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.; 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; 72 75 73 76 TCanvas *CalibClasses = new TCanvas("CalibClasses", "Calibration Classes",89,96,758,1051); … … 94 97 text = pt->AddText("MPedestalCam:"); 95 98 text = pt->AddText("ped, RMS, #Deltaped, #DeltaRMS"); 99 text->SetTextColor(kBlue); 96 100 pt->Draw(); 97 101 … … 211 215 ellipse->Draw(); 212 216 217 218 213 219 texy1 = 0.6; 214 220 … … 226 232 tex->Draw(); 227 233 228 texy1 = 0.585; 229 230 tex = new TLatex(tex1x1+0.01,texy1,"Fit High-, Low-Gain, each pixel"); 231 tex->SetTextSize(texsize2); 232 tex->SetTextColor(kRed); 233 tex->SetLineWidth(1); 234 tex->Draw(); 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 235 266 236 267 tex = new TLatex(tex2x1+0.01,texy1,"Fit Single-Phe spectrum"); … … 244 275 tex->SetLineWidth(1); 245 276 tex->Draw(); 246 247 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(); 248 282 249 283 … … 348 382 arrow->Draw(); 349 383 350 Float_tlinex1 = 0.135;351 Float_tliney1 = 0.38;384 linex1 = 0.135; 385 liney1 = 0.38; 352 386 353 387 TLine *line = new TLine(linex1,0.87,linex1,liney1); … … 359 393 arrow->Draw(); 360 394 361 arrow = new TArrow(0.35,0.395,0.24,0.433,arrsize,"|>"); 362 arrow->SetFillColor(1); 363 arrow->SetFillStyle(1001); 364 arrow->Draw(); 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(); 365 426 366 427 // seventh line 367 pt = new TPaveText(0.3,0.215,0.85,0.29,"br"); 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"); 368 442 pt->SetFillColor(18); 369 443 text = pt->AddText("MCalibrationQECam:"); … … 426 500 arrow->Draw(); 427 501 428 Float_t linex1 = 0.2 15;502 Float_t linex1 = 0.27; 429 503 Float_t liney1 = 0.13; 430 504 … … 437 511 arrow->Draw(); 438 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 439 528 CalibClasses->Modified(); 440 529 CalibClasses->cd(); 441 530 442 CalibClasses->SaveAs(" CalibClasses.gif");531 CalibClasses->SaveAs("htmldoc/images/CalibClasses.gif"); 443 532 }
Note:
See TracChangeset
for help on using the changeset viewer.