- Timestamp:
- 08/17/04 11:43:36 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4642 r4645 20 20 -*-*- END OF LINE -*-*- 21 21 22 23 2004/08/17: Markus Gaug 24 25 * mjobs/MJCalibration.[h,cc] 26 - some small modifications in the data-check display, discussed 27 with Florian 22 28 23 29 2004/08/17: Thomas Bretz -
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r4641 r4645 680 680 681 681 gStyle->SetPalette(1); 682 const Int_t numcol = gStyle->GetNumberOfColors() ;682 const Int_t numcol = gStyle->GetNumberOfColors()-3; 683 683 684 684 TPaveText *pave = new TPaveText(0.0,0.0,0.99,0.99); … … 686 686 pave->ConvertNDCtoPad(); 687 687 pave->SetTextSize(0.05); 688 TText *t1 = pave->AddText("Signal smaller 3 Pedestal RMS"); 689 t1->SetTextColor(gStyle->GetColorPalette(Int_t(1./max*numcol))); 690 TText *t2 = pave->AddText("Signal Rel. error too large"); 691 t2->SetTextColor(gStyle->GetColorPalette(Int_t(2./max*numcol))); 692 TText *t3 = pave->AddText("Signal Sigma smaller than Pedestal RMS"); 693 t3->SetTextColor(gStyle->GetColorPalette(Int_t(3./max*numcol))); 694 TText *t4 = pave->AddText("Low Gain Saturation"); 695 t4->SetTextColor(gStyle->GetColorPalette(Int_t(4./max*numcol))); 696 TText *t5 = pave->AddText("Mean Arr. Time In First Extraction Bin"); 697 t5->SetTextColor(gStyle->GetColorPalette(Int_t(5./max*numcol))); 698 TText *t6 = pave->AddText("Mean Arr. Time In Last 2 Extraction Bins"); 699 t6->SetTextColor(gStyle->GetColorPalette(Int_t(6./max*numcol))); 700 TText *t7 = pave->AddText("Deviating Number of Photo-electrons"); 701 t7->SetTextColor(gStyle->GetColorPalette(Int_t(7./max*numcol))); 702 TText *t8 = pave->AddText("Deviating global F-Factor"); 703 t8->SetTextColor(gStyle->GetColorPalette(Int_t(8./max*numcol))); 704 TText *t9 = pave->AddText("Deviating Number of Photons"); 705 t9->SetTextColor(gStyle->GetColorPalette(Int_t(9./max*numcol))); 706 TText *t10= pave->AddText("Previously Excluded"); 707 t10->SetTextColor(gStyle->GetColorPalette(Int_t(10./max*numcol))); 688 pave->AddText(" "); 689 TText *t1 = pave->AddText(Form("Signal smaller 3 Pedestal RMS: %3i pixels", 690 CountBadPixels(&disp24,1))); 691 t1->SetTextColor(gStyle->GetColorPalette(Int_t(1./max*numcol + 1.))); 692 t1->SetTextAlign(12); 693 TText *t2 = pave->AddText(Form("%s%3i%s","Signal Rel. error too large: ", 694 CountBadPixels(&disp24,2)," pixels")); 695 t2->SetTextColor(gStyle->GetColorPalette(Int_t(2./max*numcol + 1.))); 696 t2->SetTextAlign(12); 697 TText *t3 = pave->AddText(Form("Signal Sigma smaller than Pedestal RMS: %3i pixels", 698 CountBadPixels(&disp24,3))); 699 t3->SetTextColor(gStyle->GetColorPalette(Int_t(3./max*numcol + 1.))); 700 t3->SetTextAlign(12); 701 TText *t4 = pave->AddText(Form("Low Gain Saturation: %3i pixels", 702 CountBadPixels(&disp24,4))); 703 t4->SetTextColor(gStyle->GetColorPalette(Int_t(4./max*numcol + 1.))); 704 t4->SetTextAlign(12); 705 TText *t5 = pave->AddText(Form("Mean Arr. Time In First Extraction Bin: %3i pixels", 706 CountBadPixels(&disp24,5))); 707 t5->SetTextColor(gStyle->GetColorPalette(Int_t(5./max*numcol + 1.))); 708 t5->SetTextAlign(12); 709 TText *t6 = pave->AddText(Form("Mean Arr. Time In Last 2 Extraction Bins: %3i pixels", 710 CountBadPixels(&disp24,6))); 711 t6->SetTextColor(gStyle->GetColorPalette(Int_t(6./max*numcol + 1.))); 712 t6->SetTextAlign(12); 713 TText *t7 = pave->AddText(Form("Deviating Number of Photo-electrons: %3i pixels", 714 CountBadPixels(&disp24,7))); 715 t7->SetTextColor(gStyle->GetColorPalette(Int_t(7./max*numcol + 1.))); 716 t7->SetTextAlign(12); 717 TText *t8 = pave->AddText(Form("Deviating global F-Factor: %3i pixels", 718 CountBadPixels(&disp24,8))); 719 t8->SetTextColor(gStyle->GetColorPalette(Int_t(8./max*numcol + 1.))); 720 t8->SetTextAlign(12); 721 TText *t9 = pave->AddText(Form("Deviating Number of Photons: %3i pixels", 722 CountBadPixels(&disp24,9))); 723 t9->SetTextColor(gStyle->GetColorPalette(Int_t(9./max*numcol + 1.))); 724 t9->SetTextAlign(12); 725 TText *t10= pave->AddText(Form("Previously Excluded: %3i pixels", 726 CountBadPixels(&disp24,10))); 727 t10->SetTextColor(gStyle->GetColorPalette(Int_t(10./max*numcol + 1.))); 728 t10->SetTextAlign(12); 708 729 pave->Draw(); 709 730 … … 738 759 pave2->ConvertNDCtoPad(); 739 760 pave2->SetTextSize(0.05); 740 TText *tt1 = pave2->AddText("High Gain Signals could not be fitted"); 741 tt1->SetTextColor(gStyle->GetColorPalette(Int_t(1./max2*numcol))); 742 TText *tt2 = pave2->AddText("Low Gain Signals could not be fitted"); 743 tt2->SetTextColor(gStyle->GetColorPalette(Int_t(2./max2*numcol))); 744 TText *tt3 = pave2->AddText("Relative Arr. Times could not be fitted"); 745 tt3->SetTextColor(gStyle->GetColorPalette(Int_t(3./max2*numcol))); 746 TText *tt4 = pave2->AddText("High Gain Signals Oscillation"); 747 tt4->SetTextColor(gStyle->GetColorPalette(Int_t(4./max2*numcol))); 748 TText *tt5 = pave2->AddText("Low Gain Signals Oscillation"); 749 tt5->SetTextColor(gStyle->GetColorPalette(Int_t(5./max2*numcol))); 750 TText *tt6 = pave2->AddText("Relative Arr. Times Oscillation"); 751 tt6->SetTextColor(gStyle->GetColorPalette(Int_t(6./max2*numcol))); 761 pave2->AddText(" "); 762 TText *tt1 = pave2->AddText(Form("High Gain Signals could not be fitted: %3i pixels", 763 CountBadPixels(&disp25,1))); 764 tt1->SetTextColor(gStyle->GetColorPalette(Int_t(1./max2*numcol + 1.))); 765 tt1->SetTextAlign(12); 766 TText *tt2 = pave2->AddText(Form("Low Gain Signals could not be fitted: %3i pixels", 767 CountBadPixels(&disp25,2))); 768 tt2->SetTextColor(gStyle->GetColorPalette(Int_t(2./max2*numcol + 1.))); 769 tt2->SetTextAlign(12); 770 TText *tt3 = pave2->AddText(Form("Relative Arr. Times could not be fitted: %3i pixels", 771 CountBadPixels(&disp25,3))); 772 tt3->SetTextColor(gStyle->GetColorPalette(Int_t(3./max2*numcol + 1.))); 773 tt3->SetTextAlign(12); 774 TText *tt4 = pave2->AddText(Form("High Gain Signals Oscillation: %3i pixels", 775 CountBadPixels(&disp25,4))); 776 tt4->SetTextColor(gStyle->GetColorPalette(Int_t(4./max2*numcol + 1.))); 777 tt4->SetTextAlign(12); 778 TText *tt5 = pave2->AddText(Form("Low Gain Signals Oscillation: %3i pixels", 779 CountBadPixels(&disp25,5))); 780 tt5->SetTextColor(gStyle->GetColorPalette(Int_t(5./max2*numcol + 1.))); 781 tt5->SetTextAlign(12); 782 TText *tt6 = pave2->AddText(Form("Relative Arr. Times Oscillation: %3i pixels", 783 CountBadPixels(&disp25,6))); 784 tt6->SetTextColor(gStyle->GetColorPalette(Int_t(6./max2*numcol + 1.))); 785 tt6->SetTextAlign(12); 752 786 pave2->Draw(); 753 787 … … 1049 1083 1050 1084 } 1085 1086 const Int_t MJCalibration::CountBadPixels ( MHCamera *cam , const Int_t what ) const 1087 { 1088 1089 Int_t cnt = 0; 1090 1091 for (UInt_t pix=0; pix<cam->GetNumPixels();pix++) 1092 if ((Int_t)cam->GetPixContent(pix) == what) 1093 cnt++; 1094 1095 return cnt; 1096 } 1097 1051 1098 1052 1099 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mjobs/MJCalibration.h
r4644 r4645 98 98 void DisplayOutliers ( TH1D *hist, const char* whatsmall, const char* whatbig ) const; 99 99 void DisplayDoubleProject ( MHCamera *cam , const char* whatsmall, const char* whatbig ) const; 100 const Int_t CountBadPixels ( MHCamera *cam , const Int_t what ) const;100 const Int_t CountBadPixels ( MHCamera *cam , const Int_t what ) const; 101 101 void FixDataCheckHist ( TH1D *hist ) const; 102 102
Note:
See TracChangeset
for help on using the changeset viewer.