Changeset 3726 for trunk/MagicSoft
- Timestamp:
- 04/13/04 20:44:59 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3725 r3726 54 54 - updated documentation, updated QE Cam 55 55 - set the pulser colour (now obligatory) 56 - set the possibility to choose different displays 57 56 58 57 59 * mcalib/MCalibrationChargeCalc.cc -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r3725 r3726 38 38 //End_Html 39 39 // 40 // At the end of the eventloop, plots and results are displayed, depending on 41 // the flags set (see DisplayResult()) 42 // 43 // If the flag SetFullDisplay() is set, all MHCameras will be displayed. 44 // if the flag SetDataCheck() is set, only the most important ones are displayed 45 // Otherwise, (default: SetNormalDisplay()), a good selection of plots is given 46 // 40 47 // See also: MHCalibrationChargePix, MHCalibrationChargeCam, MHGausEvents 41 48 // MHCalibrationChargeBlindPix, MHCalibrationChargePINDiode … … 96 103 // Default constructor. 97 104 // 98 // Sets fRuns to 0, fColor to kNONE 105 // Sets fRuns to 0, fColor to kNONE, fDisplay to kNormalDisplay 99 106 // 100 107 MJCalibration::MJCalibration(const char *name, const char *title) 101 : fRuns(0), fColor(MCalibrationCam::kNONE) 108 : fRuns(0), fColor(MCalibrationCam::kNONE), fDisplayType(kNormalDisplay) 102 109 { 103 110 fName = name ? name : "MJCalibration"; … … 193 200 // 29) MCalibrationChargePix::GetAbsTimeRms() 194 201 // 202 // If the flag SetFullDisplay() is set, all MHCameras will be displayed. 203 // if the flag SetDataCheck() is set, only the most important ones are displayed 204 // and otherwise, (default: SetNormalDisplay()), a good selection of plots is given 205 // 195 206 void MJCalibration::DisplayResult(MParList &plist) 196 207 { … … 346 357 gStyle->SetOptFit(); 347 358 348 // Charges 349 TCanvas &c1 = fDisplay->AddTab("Fit.Charge"); 350 c1.Divide(2, 4); 351 352 CamDraw(c1, 1, 2, disp1, 2, 1); 353 CamDraw(c1, 2, 2, disp2, 2, 1); 354 355 // Reduced Sigmas 356 TCanvas &c3 = fDisplay->AddTab("Red.Sigma"); 357 c3.Divide(2,4); 358 359 CamDraw(c3, 1, 2, disp3, 2, 1); 360 CamDraw(c3, 2, 2, disp4, 2, 1); 361 362 // F-Factor 363 TCanvas &c4 = fDisplay->AddTab("Phe's"); 364 c4.Divide(3,4); 365 366 CamDraw(c4, 1, 3, disp5, 2, 1); 367 CamDraw(c4, 2, 3, disp6, 2, 1); 368 CamDraw(c4, 3, 3, disp7, 2, 1); 369 370 // QE's 371 TCanvas &c5 = fDisplay->AddTab("QE's"); 372 c5.Divide(4,4); 373 374 CamDraw(c5, 1, 4, disp8, 2, 1); 375 CamDraw(c5, 2, 4, disp9, 2, 1); 376 CamDraw(c5, 3, 4, disp10, 2, 1); 377 CamDraw(c5, 4, 4, disp11, 2, 1); 378 379 // Validity 380 TCanvas &c6 = fDisplay->AddTab("Valid"); 381 c6.Divide(4,2); 382 383 CamDraw(c6, 1, 4, disp12, 0); 384 CamDraw(c6, 2, 4, disp13, 0); 385 CamDraw(c6, 3, 4, disp14, 0); 386 CamDraw(c6, 4, 4, disp15, 0); 387 388 // Other info 389 TCanvas &c7 = fDisplay->AddTab("HiLoGain"); 390 c7.Divide(3,3); 391 392 CamDraw(c7, 1, 3, disp16, 0); 393 CamDraw(c7, 2, 3, disp17, 1); 394 CamDraw(c7, 3, 3, disp18, 1); 395 396 // Pickup 397 TCanvas &c8 = fDisplay->AddTab("Pickup"); 398 c8.Divide(4,2); 399 400 CamDraw(c8, 1, 4, disp19, 0); 401 CamDraw(c8, 2, 4, disp20, 0); 402 CamDraw(c8, 3, 4, disp21, 0); 403 CamDraw(c8, 4, 4, disp22, 0); 404 405 // Defects 406 TCanvas &c9 = fDisplay->AddTab("Defect"); 407 c9.Divide(5,2); 408 409 CamDraw(c9, 1, 5, disp23, 0); 410 CamDraw(c9, 2, 5, disp24, 0); 411 CamDraw(c9, 3, 5, disp25, 0); 412 CamDraw(c9, 4, 5, disp26, 0); 413 CamDraw(c9, 5, 5, disp27, 0); 414 415 // Abs. Times 416 TCanvas &c10 = fDisplay->AddTab("Abs. Times"); 417 c10.Divide(2,3); 359 if (fDisplayType == kDataCheck) 360 { 361 TCanvas &c1 = fDisplay->AddTab("Fit.Charge"); 362 c1.Divide(3, 3); 363 364 CamDraw(c1, 1, 3, disp1, 2); 365 CamDraw(c1, 2, 3, disp4, 2); 366 CamDraw(c1, 3, 3, disp28, 2); 367 368 // F-Factor 369 TCanvas &c2 = fDisplay->AddTab("Phe's"); 370 c2.Divide(3,4); 371 372 CamDraw(c2, 1, 3, disp6, 2, 1); 373 CamDraw(c2, 2, 3, disp7, 2, 1); 374 CamDraw(c2, 3, 3, disp8, 2, 1); 375 376 // QE's 377 TCanvas &c3 = fDisplay->AddTab("QE's"); 378 c3.Divide(3,4); 379 380 CamDraw(c3, 1, 3, disp8, 2, 1); 381 CamDraw(c3, 2, 3, disp9, 2, 1); 382 CamDraw(c3, 3, 3, disp10, 2, 1); 383 384 // Defects 385 TCanvas &c4 = fDisplay->AddTab("Defect"); 386 c4.Divide(3,2); 387 388 CamDraw(c4, 1, 3, disp23, 0); 389 CamDraw(c4, 2, 3, disp24, 0); 390 CamDraw(c4, 3, 3, disp25, 0); 391 392 return; 393 } 418 394 419 CamDraw(c10, 1, 2, disp28, 2); 420 CamDraw(c10, 2, 2, disp29, 1); 421 395 if (fDisplayType == kNormalDisplay) 396 { 397 398 // Charges 399 TCanvas &c11 = fDisplay->AddTab("Fit.Charge"); 400 c11.Divide(2, 4); 401 402 CamDraw(c11, 1, 2, disp1, 2, 1); 403 CamDraw(c11, 2, 2, disp2, 2, 1); 404 405 // Reduced Sigmas 406 TCanvas &c12 = fDisplay->AddTab("Red.Sigma"); 407 c12.Divide(2,4); 408 409 CamDraw(c12, 1, 2, disp3, 2, 1); 410 CamDraw(c12, 2, 2, disp4, 2, 1); 411 412 // F-Factor 413 TCanvas &c13 = fDisplay->AddTab("Phe's"); 414 c13.Divide(3,4); 415 416 CamDraw(c13, 1, 3, disp5, 2, 1); 417 CamDraw(c13, 2, 3, disp6, 2, 1); 418 CamDraw(c13, 3, 3, disp7, 2, 1); 419 420 // QE's 421 TCanvas &c14 = fDisplay->AddTab("QE's"); 422 c14.Divide(4,4); 423 424 CamDraw(c14, 1, 4, disp8, 2, 1); 425 CamDraw(c14, 2, 4, disp9, 2, 1); 426 CamDraw(c14, 3, 4, disp10, 2, 1); 427 CamDraw(c14, 4, 4, disp11, 2, 1); 428 429 // Defects 430 TCanvas &c15 = fDisplay->AddTab("Defect"); 431 c15.Divide(5,2); 432 433 CamDraw(c15, 1, 5, disp23, 0); 434 CamDraw(c15, 2, 5, disp24, 0); 435 CamDraw(c15, 3, 5, disp25, 0); 436 CamDraw(c15, 4, 5, disp26, 0); 437 CamDraw(c15, 5, 5, disp27, 0); 438 439 // Abs. Times 440 TCanvas &c16 = fDisplay->AddTab("Abs. Times"); 441 c16.Divide(2,3); 442 443 CamDraw(c16, 1, 2, disp28, 2); 444 CamDraw(c16, 2, 2, disp29, 1); 445 446 return; 447 } 448 449 if (fDisplayType == kFullDisplay) 450 { 451 452 // Charges 453 TCanvas &c21 = fDisplay->AddTab("Fit.Charge"); 454 c21.Divide(2, 4); 455 456 CamDraw(c21, 1, 2, disp1, 2, 1); 457 CamDraw(c21, 2, 2, disp2, 2, 1); 458 459 // Reduced Sigmas 460 TCanvas &c23 = fDisplay->AddTab("Red.Sigma"); 461 c23.Divide(2,4); 462 463 CamDraw(c23, 1, 2, disp3, 2, 1); 464 CamDraw(c23, 2, 2, disp4, 2, 1); 465 466 // F-Factor 467 TCanvas &c24 = fDisplay->AddTab("Phe's"); 468 c24.Divide(3,4); 469 470 CamDraw(c24, 1, 3, disp5, 2, 1); 471 CamDraw(c24, 2, 3, disp6, 2, 1); 472 CamDraw(c24, 3, 3, disp7, 2, 1); 473 474 // QE's 475 TCanvas &c25 = fDisplay->AddTab("QE's"); 476 c25.Divide(4,4); 477 478 CamDraw(c25, 1, 4, disp8, 2, 1); 479 CamDraw(c25, 2, 4, disp9, 2, 1); 480 CamDraw(c25, 3, 4, disp10, 2, 1); 481 CamDraw(c25, 4, 4, disp11, 2, 1); 482 483 // Validity 484 TCanvas &c26 = fDisplay->AddTab("Valid"); 485 c26.Divide(4,2); 486 487 CamDraw(c26, 1, 4, disp12, 0); 488 CamDraw(c26, 2, 4, disp13, 0); 489 CamDraw(c26, 3, 4, disp14, 0); 490 CamDraw(c26, 4, 4, disp15, 0); 491 492 // Other info 493 TCanvas &c27 = fDisplay->AddTab("HiLoGain"); 494 c27.Divide(3,3); 495 496 CamDraw(c27, 1, 3, disp16, 0); 497 CamDraw(c27, 2, 3, disp17, 1); 498 CamDraw(c27, 3, 3, disp18, 1); 499 500 // Pickup 501 TCanvas &c28 = fDisplay->AddTab("Pickup"); 502 c28.Divide(4,2); 503 504 CamDraw(c28, 1, 4, disp19, 0); 505 CamDraw(c28, 2, 4, disp20, 0); 506 CamDraw(c28, 3, 4, disp21, 0); 507 CamDraw(c28, 4, 4, disp22, 0); 508 509 // Defects 510 TCanvas &c29 = fDisplay->AddTab("Defect"); 511 c29.Divide(5,2); 512 513 CamDraw(c29, 1, 5, disp23, 0); 514 CamDraw(c29, 2, 5, disp24, 0); 515 CamDraw(c29, 3, 5, disp25, 0); 516 CamDraw(c29, 4, 5, disp26, 0); 517 CamDraw(c29, 5, 5, disp27, 0); 518 519 // Abs. Times 520 TCanvas &c30 = fDisplay->AddTab("Abs. Times"); 521 c30.Divide(2,3); 522 523 CamDraw(c30, 1, 2, disp28, 2); 524 CamDraw(c30, 2, 2, disp29, 1); 525 526 return; 527 } 422 528 } 423 529 -
trunk/MagicSoft/Mars/mjobs/MJCalibration.h
r3725 r3726 31 31 32 32 MCalibrationCam::PulserColor_t fColor; // Colour of the pulsed LEDs 33 34 enum Display_t { kFullDisplay, kDataCheck, kNormalDisplay }; // Possible Display types 35 Display_t fDisplayType; // Chosen Display type 33 36 34 37 void DrawProjection ( MHCamera *obj, Int_t fit) const; // Draw projection of pixels values … … 56 59 void SetQECam (const MCalibrationQECam &qe) { qe.Copy(fQECam); } 57 60 void SetColor (const MCalibrationCam::PulserColor_t color) { fColor = color; } 61 62 // Displays 63 void SetFullDisplay() { fDisplayType = kFullDisplay; } 64 void SetDataCheck() { fDisplayType = kDataCheck; } 65 void SetNormalDisplay() { fDisplayType = kNormalDisplay; } 58 66 59 67 Bool_t ReadCalibrationCam();
Note:
See TracChangeset
for help on using the changeset viewer.