Changeset 5511 for trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
- Timestamp:
- 11/30/04 11:15:57 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibration.cc
r5460 r5511 861 861 t7->SetTextColor(gStyle->GetColorPalette(Int_t(6./max*numcol + 1.))); 862 862 t7->SetTextAlign(12); 863 TText *t 8 = pave->AddText(Form("Deviating global F-Factor:%3i pixels",863 TText *t9 = pave->AddText(Form("Deviating Number of Photons: %3i pixels", 864 864 CountBadPixels(&disp24,7))); 865 t8->SetTextColor(gStyle->GetColorPalette(Int_t(7./max*numcol + 1.))); 866 t8->SetTextAlign(12); 867 TText *t9 = pave->AddText(Form("Deviating Number of Photons: %3i pixels", 868 CountBadPixels(&disp24,8))); 869 t9->SetTextColor(gStyle->GetColorPalette(Int_t(8./max*numcol + 1.))); 865 t9->SetTextColor(gStyle->GetColorPalette(Int_t(7./max*numcol + 1.))); 870 866 t9->SetTextAlign(12); 871 867 TText *t10= pave->AddText(Form("High-Gain Histogram Overflow: %3i pixels", 872 CountBadPixels(&disp24, 9)));873 t10->SetTextColor(gStyle->GetColorPalette(Int_t( 9./max*numcol + 1.)));868 CountBadPixels(&disp24,8 ))); 869 t10->SetTextColor(gStyle->GetColorPalette(Int_t(8./max*numcol + 1.))); 874 870 t10->SetTextAlign(12); 875 871 TText *t11= pave->AddText(Form("Low-Gain Histogram Overflow: %3i pixels", 876 CountBadPixels(&disp24, 10)));877 t11->SetTextColor(gStyle->GetColorPalette(Int_t( 10./max*numcol + 1.)));872 CountBadPixels(&disp24,9 ))); 873 t11->SetTextColor(gStyle->GetColorPalette(Int_t(9./max*numcol + 1.))); 878 874 t11->SetTextAlign(12); 879 875 TText *t12= pave->AddText(Form("Previously Excluded: %3i pixels", 880 CountBadPixels(&disp24,1 1)));881 t12->SetTextColor(gStyle->GetColorPalette(Int_t(1 1./max*numcol + 1.)));876 CountBadPixels(&disp24,10))); 877 t12->SetTextColor(gStyle->GetColorPalette(Int_t(10./max*numcol + 1.))); 882 878 t12->SetTextAlign(12); 883 879 pave->Draw(); … … 943 939 tt6->SetTextColor(gStyle->GetColorPalette(Int_t(7./max2*numcol + 1.))); 944 940 tt6->SetTextAlign(12); 941 TText *tt8 = pave2->AddText(Form("Deviating global F-Factor: %3i pixels", 942 CountBadPixels(&disp25,8))); 943 tt8->SetTextColor(gStyle->GetColorPalette(Int_t(8./max2*numcol + 1.))); 944 tt8->SetTextAlign(12); 945 945 pave2->Draw(); 946 946 … … 1677 1677 filltme.SetDrawOption(drawoption.Data()); 1678 1678 */ 1679 // 1680 // Set default extractors in case, none has been set... 1681 // 1682 if (!fExtractor) 1683 fExtractor = &extract2; 1684 if (!fTimeExtractor) 1685 fTimeExtractor = ×pline; 1686 1679 1687 MTaskEnv taskenv("ExtractSignal"); 1680 taskenv.SetDefault(fExtractor ? fExtractor : &extract2);1688 taskenv.SetDefault(fExtractor); 1681 1689 1682 1690 tlist.AddToList(&merge); … … 1684 1692 1685 1693 MPedCalcPedRun pedcalc; 1686 pedcalc.SetWindowSize(fExtractor 1687 ? (Int_t)TMath::Nint(fExtractor->GetNumHiGainSamples()) 1688 : (Int_t)TMath::Nint(extract2.GetNumHiGainSamples()) 1689 ); 1690 pedcalc.SetRange(fExtractor 1691 ? fExtractor->GetHiGainFirst() 1692 : extract2.GetHiGainFirst(), 1693 fExtractor 1694 ? fExtractor->GetHiGainLast() 1695 : extract2.GetHiGainLast() 1696 ); 1694 pedcalc.SetExtractWindow(fExtractor->GetHiGainFirst(),TMath::Nint(fExtractor->GetNumHiGainSamples())); 1697 1695 1698 1696 if (IsIntensity()) … … 1709 1707 if (!IsTimeAndCharge()) 1710 1708 { 1711 taskenv2.SetDefault(fTimeExtractor ? fTimeExtractor : ×pline);1709 taskenv2.SetDefault(fTimeExtractor); 1712 1710 1713 1711 if (IsRelTimes())
Note:
See TracChangeset
for help on using the changeset viewer.