Changeset 7188 for trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
- Timestamp:
- 07/13/05 19:06:26 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r7126 r7188 760 760 gPad->SetBorderMode(0); 761 761 if (geomcam.InheritsFrom("MGeomCamMagic")) 762 DisplayDoubleProject(&disp3 5, "noisy", "dead");762 DisplayDoubleProject(&disp37, "noisy", "dead"); 763 763 764 764 // … … 842 842 // for the datacheck, fix the ranges!! 843 843 // 844 const Double_t max = 1 2.;844 const Double_t max = 10.; 845 845 obj8->SetMinimum(0.); 846 846 obj8->SetMaximum(max); … … 863 863 t1->SetTextColor(gStyle->GetColorPalette(Int_t(1./max*numcol))); 864 864 t1->SetTextAlign(12); 865 TText *t2 = pave->AddText(Form("%s%3i%s","Signal Rel. error too large: ",866 CountBadPixels(&disp24,2)," pixels"));867 t2->SetTextColor(gStyle->GetColorPalette(Int_t(2./max*numcol)));868 t2->SetTextAlign(12);869 865 TText *t4 = pave->AddText(Form("Low Gain Saturation: %3i pixels", 870 CountBadPixels(&disp24, 3)));871 t4->SetTextColor(gStyle->GetColorPalette(Int_t( 3./max*numcol)));866 CountBadPixels(&disp24,2))); 867 t4->SetTextColor(gStyle->GetColorPalette(Int_t(2./max*numcol))); 872 868 t4->SetTextAlign(12); 873 869 TText *t5 = pave->AddText(Form("Mean Arr. Time In First Extraction Bin: %3i pixels", 874 CountBadPixels(&disp24, 4)));875 t5->SetTextColor(gStyle->GetColorPalette(Int_t( 4./max*numcol)));870 CountBadPixels(&disp24,3))); 871 t5->SetTextColor(gStyle->GetColorPalette(Int_t(3./max*numcol))); 876 872 t5->SetTextAlign(12); 877 873 TText *t6 = pave->AddText(Form("Mean Arr. Time In Last 2 Extraction Bins: %3i pixels", 878 CountBadPixels(&disp24, 5)));879 t6->SetTextColor(gStyle->GetColorPalette(Int_t( 5./max*numcol)));874 CountBadPixels(&disp24,4))); 875 t6->SetTextColor(gStyle->GetColorPalette(Int_t(4./max*numcol))); 880 876 t6->SetTextAlign(12); 881 TText *t9 = pave->AddText(Form("Deviating Number of Photons: %3i pixels",882 CountBadPixels(&disp24,6)));883 t9->SetTextColor(gStyle->GetColorPalette(Int_t(6./max*numcol)));884 t9->SetTextAlign(12);885 877 TText *t10= pave->AddText(Form("High-Gain Histogram Overflow: %3i pixels", 886 CountBadPixels(&disp24, 7)));887 t10->SetTextColor(gStyle->GetColorPalette(Int_t( 7./max*numcol)));878 CountBadPixels(&disp24,5 ))); 879 t10->SetTextColor(gStyle->GetColorPalette(Int_t(5./max*numcol))); 888 880 t10->SetTextAlign(12); 889 881 TText *t11= pave->AddText(Form("Low-Gain Histogram Overflow: %3i pixels", 890 CountBadPixels(&disp24, 8)));891 t11->SetTextColor(gStyle->GetColorPalette(Int_t( 8./max*numcol)));882 CountBadPixels(&disp24,6 ))); 883 t11->SetTextColor(gStyle->GetColorPalette(Int_t(6./max*numcol))); 892 884 t11->SetTextAlign(12); 893 885 TText *t12= pave->AddText(Form("Presumably dead from Ped. Rms: %3i pixels", 894 CountBadPixels(&disp24, 9)));895 t12->SetTextColor(gStyle->GetColorPalette(Int_t( 9./max*numcol)));886 CountBadPixels(&disp24,7 ))); 887 t12->SetTextColor(gStyle->GetColorPalette(Int_t(7./max*numcol))); 896 888 t12->SetTextAlign(12); 897 889 TText *t13= pave->AddText(Form("Fluctuating Pulse Arrival Times: %3i pixels", 898 CountBadPixels(&disp24, 10)));899 t13->SetTextColor(gStyle->GetColorPalette(Int_t( 10./max*numcol)));890 CountBadPixels(&disp24,8 ))); 891 t13->SetTextColor(gStyle->GetColorPalette(Int_t(8./max*numcol))); 900 892 t13->SetTextAlign(12); 901 893 TText *t17 = pave->AddText(Form("Deviating Number of Photo-electrons: %3i pixels", 902 CountBadPixels(&disp24, 11)));903 t17->SetTextColor(gStyle->GetColorPalette(Int_t( 11./max*numcol)));894 CountBadPixels(&disp24,9 ))); 895 t17->SetTextColor(gStyle->GetColorPalette(Int_t(9./max*numcol))); 904 896 t17->SetTextAlign(12); 905 897 TText *t14= pave->AddText(Form("Previously Excluded: %3i pixels", 906 CountBadPixels(&disp24,1 2)));907 t14->SetTextColor(gStyle->GetColorPalette(Int_t(1 2./max*numcol)));898 CountBadPixels(&disp24,10))); 899 t14->SetTextColor(gStyle->GetColorPalette(Int_t(10./max*numcol))); 908 900 t14->SetTextAlign(12); 901 TText *t15= pave->AddText(Form("Too many Low-Gain Blackout Events %3i pixels", 902 CountBadPixels(&disp24,25 ))); 903 t15->SetTextColor(gStyle->GetColorPalette(Int_t(11./max*numcol))); 904 t15->SetTextAlign(12); 909 905 pave->Draw(); 910 906 … … 1514 1510 const MCalibrationHiLoPix &pix = (MCalibrationHiLoPix&)hilocam[i]; 1515 1511 1516 const Float_t ratio = pix.GetHiLoChargeRatio(); 1517 const Float_t sigma = pix.GetHiLoChargeRatioSigma(); 1512 const Float_t ratio = pix.GetHiLoChargeRatio(); 1513 const Float_t raterr = pix.GetHiLoChargeRatioErr(); 1514 const Float_t sigma = pix.GetHiLoChargeRatioSigma(); 1518 1515 1519 1516 if (ratio < 0.) … … 1526 1523 1527 1524 cpix.SetConversionHiLo(ratio); 1528 cpix.SetConversionHiLoErr(sigma); 1525 cpix.SetConversionHiLoErr(raterr); 1526 cpix.SetConversionHiLoSigma(sigma); 1529 1527 } 1530 1528 … … 1943 1941 tlist.AddToList(&steer); 1944 1942 1945 tlist.AddToList(&fillcam);1946 1947 1943 if (IsRelTimes()) 1948 1944 { … … 1950 1946 tlist.AddToList(&timecalc); 1951 1947 } 1948 1949 tlist.AddToList(&fillcam); 1952 1950 1953 1951 if (IsUseBlindPixel()) … … 1999 1997 if (fIsPixelCheck) 2000 1998 { 2001 chargecam[fCheckedPixId].DrawClone(" ");2002 chargecam(fCheckedPixId).DrawClone(" ");1999 chargecam[fCheckedPixId].DrawClone("datacheck"); 2000 chargecam(fCheckedPixId).DrawClone("datacheck"); 2003 2001 2004 2002 if (IsRelTimes())
Note:
See TracChangeset
for help on using the changeset viewer.