Changeset 4638 for trunk/MagicSoft/Mars
- Timestamp:
- 08/16/04 19:48:31 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r4636 r4638 95 95 #include <TLatex.h> 96 96 #include <TLegend.h> 97 #include <TPaveText.h> 97 98 98 99 #include "MLog.h" … … 348 349 // Pixels with defects 349 350 disp23.SetCamContent(fCalibrationCam, 20); 350 disp24.SetCamContent(fBadPixels, 1);351 disp25.SetCamContent(fBadPixels, 3);351 disp24.SetCamContent(fBadPixels, 6); 352 disp25.SetCamContent(fBadPixels, 7); 352 353 353 354 // Oscillations … … 388 389 disp21.SetYTitle("[1]"); 389 390 disp22.SetYTitle("[1]"); 390 disp23.SetYTitle("[1]");391 disp24.SetYTitle("[1]");392 disp25.SetYTitle("[1]");391 // disp23.SetYTitle("[1]"); 392 // disp24.SetYTitle("[1]"); 393 // disp25.SetYTitle("[1]"); 393 394 disp26.SetYTitle("[1]"); 394 395 disp27.SetYTitle("[1]"); … … 658 659 659 660 // 660 // DEFECTS661 // UNSUITABLE PIXELS 661 662 // 662 663 TCanvas &c4 = fDisplay->AddTab("Defect"); 663 664 c4.Divide(2,2); 664 665 665 disp24.CamDraw(c4, 1, 2, 0); 666 disp25.CamDraw(c4, 2, 2, 0); 667 666 c4.cd(1); 667 gPad->SetBorderMode(0); 668 gPad->SetTicks(); 669 MHCamera *obj8=(MHCamera*)disp24.DrawCopy("hist"); 670 // 671 // for the datacheck, fix the ranges!! 672 // 673 const Double_t max = 11.; 674 obj8->SetMinimum(0.); 675 obj8->SetMaximum(11.); 676 // 677 // Set the datacheck sizes: 678 // 679 FixDataCheckHist((TH1D*)obj8); 680 681 gStyle->SetPalette(1); 682 const Int_t numcol = gStyle->GetNumberOfColors(); 683 684 TPaveText *pave = new TPaveText(0.0,0.0,0.99,0.99); 685 pave->SetBit(kCanDelete); 686 pave->ConvertNDCtoPad(); 687 pave->SetTextSize(0.05); 688 TText *t0 = pave->AddText(" "); 689 TText *t1 = pave->AddText("Signal smaller 3 Pedestal RMS"); 690 t1->SetTextColor(gStyle->GetColorPalette(Int_t(1./max*numcol))); 691 TText *t2 = pave->AddText("Signal Rel. error too large"); 692 t2->SetTextColor(gStyle->GetColorPalette(Int_t(2./max*numcol))); 693 TText *t3 = pave->AddText("Signal Sigma smaller than Pedestal RMS"); 694 t3->SetTextColor(gStyle->GetColorPalette(Int_t(3./max*numcol))); 695 TText *t4 = pave->AddText("Low Gain Saturation"); 696 t4->SetTextColor(gStyle->GetColorPalette(Int_t(4./max*numcol))); 697 TText *t5 = pave->AddText("Mean Arr. Time In First Extraction Bin"); 698 t5->SetTextColor(gStyle->GetColorPalette(Int_t(5./max*numcol))); 699 TText *t6 = pave->AddText("Mean Arr. Time In Last 2 Extraction Bins"); 700 t6->SetTextColor(gStyle->GetColorPalette(Int_t(6./max*numcol))); 701 TText *t7 = pave->AddText("Deviating Number of Photo-electrons"); 702 t7->SetTextColor(gStyle->GetColorPalette(Int_t(7./max*numcol))); 703 TText *t8 = pave->AddText("Deviating global F-Factor"); 704 t8->SetTextColor(gStyle->GetColorPalette(Int_t(8./max*numcol))); 705 TText *t9 = pave->AddText("Deviating Number of Photons"); 706 t9->SetTextColor(gStyle->GetColorPalette(Int_t(9./max*numcol))); 707 TText *t10= pave->AddText("Previously Excluded"); 708 t10->SetTextColor(gStyle->GetColorPalette(Int_t(10./max*numcol))); 709 pave->Draw(); 710 711 c4.cd(3); 712 gPad->SetBorderMode(0); 713 obj8->Draw(); 714 obj8->SetPrettyPalette(); 715 716 // 717 // UNRELIABLE PIXELS 718 // 719 720 c4.cd(2); 721 gPad->SetBorderMode(0); 722 gPad->SetTicks(); 723 MHCamera *obj9=(MHCamera*)disp25.DrawCopy("hist"); 724 // 725 // for the datacheck, fix the ranges!! 726 // 727 const Double_t max2 = 8.; 728 obj9->SetMinimum(0.); 729 obj9->SetMaximum(max2); 730 // 731 // Set the datacheck sizes: 732 // 733 FixDataCheckHist((TH1D*)obj9); 734 735 gStyle->SetPalette(1); 736 737 TPaveText *pave2 = new TPaveText(0.0,0.0,0.99,0.99); 738 pave2->SetBit(kCanDelete); 739 pave2->ConvertNDCtoPad(); 740 pave2->SetTextSize(0.05); 741 TText *tt0 = pave2->AddText(" "); 742 TText *tt1 = pave2->AddText("High Gain Signals could not be fitted"); 743 tt1->SetTextColor(gStyle->GetColorPalette(Int_t(1./max2*numcol))); 744 TText *tt2 = pave2->AddText("Low Gain Signals could not be fitted"); 745 tt2->SetTextColor(gStyle->GetColorPalette(Int_t(2./max2*numcol))); 746 TText *tt3 = pave2->AddText("Relative Arr. Times could not be fitted"); 747 tt3->SetTextColor(gStyle->GetColorPalette(Int_t(3./max2*numcol))); 748 TText *tt4 = pave2->AddText("High Gain Signals Oscillation"); 749 tt4->SetTextColor(gStyle->GetColorPalette(Int_t(4./max2*numcol))); 750 TText *tt5 = pave2->AddText("Low Gain Signals Oscillation"); 751 tt5->SetTextColor(gStyle->GetColorPalette(Int_t(5./max2*numcol))); 752 TText *tt6 = pave2->AddText("Relative Arr. Times Oscillation"); 753 tt6->SetTextColor(gStyle->GetColorPalette(Int_t(6./max2*numcol))); 754 pave2->Draw(); 755 756 c4.cd(4); 757 gPad->SetBorderMode(0); 758 obj9->SetPrettyPalette(); 759 obj9->Draw(); 760 668 761 if (fRelTimes) 669 762 {
Note:
See TracChangeset
for help on using the changeset viewer.