Changeset 3551 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 03/19/04 16:56:19 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc
r3511 r3551 62 62 // ============================================= 63 63 // 64 // 9: Number of Photo-electrons obtained with the F-Factor method64 // 9: Number of Photo-electrons obtained with the F-Factor method 65 65 // 10: Error on Number of Photo-electrons obtained with the F-Factor method 66 66 // 11: Mean conversion factor obtained with the F-Factor method … … 68 68 // 13: Overall F-Factor of the readout obtained with the F-Factor method 69 69 // 14: Error on Overall F-Factor of the readout obtained with the F-Factor method 70 // 15: Number of Photons inside Plexiglass obtained with the Blind Pixel method 71 // 16: Error on Number of Photons inside Plexiglass obtained with the Blind Pixel method 72 // 17: Mean conversion factor obtained with the Blind Pixel method 73 // 18: Error on the mean conversion factor obtained with the Blind Pixel method 74 // 19: Overall F-Factor of the readout obtained with the Blind Pixel method 75 // 20: Error on Overall F-Factor of the readout obtained with the Blind Pixel method 76 // 21: Number of Photons outside Plexiglass obtained with the PIN Diode method 77 // 22: Error on Number of Photons outside Plexiglass obtained with the PIN Diode method 78 // 23: Mean conversion factor obtained with the PIN Diode method 79 // 24: Error on the mean conversion factor obtained with the PIN Diode method 80 // 25: Overall F-Factor of the readout obtained with the PIN Diode method 81 // 26: Error on Overall F-Factor of the readout obtained with the PIN Diode method 70 // 15: Pixels with valid calibration by the F-Factor-Method 71 // 16: Mean conversion factor obtained with the Blind Pixel method 72 // 17: Error on the mean conversion factor obtained with the Blind Pixel method 73 // 18: Overall F-Factor of the readout obtained with the Blind Pixel method 74 // 19: Error on Overall F-Factor of the readout obtained with the Blind Pixel method 75 // 20: Pixels with valid calibration by the Blind Pixel-Method 76 // 21: Mean conversion factor obtained with the PIN Diode method 77 // 22: Error on the mean conversion factor obtained with the PIN Diode method 78 // 23: Overall F-Factor of the readout obtained with the PIN Diode method 79 // 24: Error on Overall F-Factor of the readout obtained with the PIN Diode method 80 // 25: Pixels with valid calibration by the PIN Diode-Method 82 81 // 83 82 // Localized defects: 84 83 // ================== 85 84 // 86 // 2 7: Excluded Pixels87 // 2 8: Pixels where the fit did not succeed --> results obtained only from the histograms88 // 2 9: Number of probable pickup events in the Hi Gain89 // 30: Number of probable pickup events in the Lo Gain85 // 26: Excluded Pixels 86 // 27: Pixels where the fit did not succeed --> results obtained only from the histograms 87 // 28: Number of probable pickup events in the Hi Gain 88 // 29: Number of probable pickup events in the Lo Gain 90 89 // 91 90 // Other classifications of pixels: 92 91 // ================================ 93 92 // 94 // 31: Pixels with saturated Hi-Gain 95 // 96 // Classification of validity of the calibrations: 97 // =============================================== 98 // 99 // 32: Pixels with valid calibration by the F-Factor-Method 100 // 33: Pixels with valid calibration by the Blind Pixel-Method 101 // 34: Pixels with valid calibration by the PIN Diode-Method 93 // 30: Pixels with saturated Hi-Gain 102 94 // 103 95 // Used Pedestals: 104 96 // =============== 105 97 // 106 // 3 5: Mean Pedestal over the entire range of signal extraction107 // 3 6: Error on the Mean Pedestal over the entire range of signal extraction108 // 3 7: Pedestal RMS over the entire range of signal extraction109 // 3 8: Error on the Pedestal RMS over the entire range of signal extraction98 // 31: Mean Pedestal over the entire range of signal extraction 99 // 32: Error on the Mean Pedestal over the entire range of signal extraction 100 // 33: Pedestal RMS over the entire range of signal extraction 101 // 34: Error on the Pedestal RMS over the entire range of signal extraction 110 102 // 111 103 // Calculated absolute arrival times (very low precision!): 112 104 // ======================================================== 113 105 // 114 // 3 9: Absolute Arrival time of the signal115 // 40: RMS of the Absolute Arrival time of the signal106 // 35: Absolute Arrival time of the signal 107 // 36: RMS of the Absolute Arrival time of the signal 116 108 // 117 109 ///////////////////////////////////////////////////////////////////////////// … … 422 414 // 8: Error of Reduced Sigma per Charge 423 415 // 416 // Useful variables derived from the fit results: 417 // ============================================= 418 // 419 // 4: Returned probability of Gauss fit to Charge distribution 420 // 5: Reduced Sigma of fitted Charge --> sqrt(sigma_Q^2 - PedRMS^2) 421 // 6: Error Reduced Sigma of fitted Charge 422 // 7: Reduced Sigma per Charge 423 // 8: Error of Reduced Sigma per Charge 424 // 424 425 // Results of the different calibration methods: 425 426 // ============================================= 426 427 // 427 // 9: Number of Photo-electrons obtained with the F-Factor method428 // 9: Number of Photo-electrons obtained with the F-Factor method 428 429 // 10: Error on Number of Photo-electrons obtained with the F-Factor method 429 430 // 11: Mean conversion factor obtained with the F-Factor method … … 431 432 // 13: Overall F-Factor of the readout obtained with the F-Factor method 432 433 // 14: Error on Overall F-Factor of the readout obtained with the F-Factor method 433 // 15: Number of Photons inside Plexiglass obtained with the Blind Pixel method 434 // 16: Error on Number of Photons inside Plexiglass obtained with the Blind Pixel method 435 // 17: Mean conversion factor obtained with the Blind Pixel method 436 // 18: Error on the mean conversion factor obtained with the Blind Pixel method 437 // 19: Overall F-Factor of the readout obtained with the Blind Pixel method 438 // 20: Error on Overall F-Factor of the readout obtained with the Blind Pixel method 439 // 21: Number of Photons outside Plexiglass obtained with the PIN Diode method 440 // 22: Error on Number of Photons outside Plexiglass obtained with the PIN Diode method 441 // 23: Mean conversion factor obtained with the PIN Diode method 442 // 24: Error on the mean conversion factor obtained with the PIN Diode method 443 // 25: Overall F-Factor of the readout obtained with the PIN Diode method 444 // 26: Error on Overall F-Factor of the readout obtained with the PIN Diode method 434 // 15: Pixels with valid calibration by the F-Factor-Method 435 // 16: Mean conversion factor obtained with the Blind Pixel method 436 // 17: Error on the mean conversion factor obtained with the Blind Pixel method 437 // 18: Overall F-Factor of the readout obtained with the Blind Pixel method 438 // 19: Error on Overall F-Factor of the readout obtained with the Blind Pixel method 439 // 20: Pixels with valid calibration by the Blind Pixel-Method 440 // 21: Mean conversion factor obtained with the PIN Diode method 441 // 22: Error on the mean conversion factor obtained with the PIN Diode method 442 // 23: Overall F-Factor of the readout obtained with the PIN Diode method 443 // 24: Error on Overall F-Factor of the readout obtained with the PIN Diode method 444 // 25: Pixels with valid calibration by the PIN Diode-Method 445 445 // 446 446 // Localized defects: 447 447 // ================== 448 448 // 449 // 2 7: Excluded Pixels450 // 2 8: Pixels where the fit did not succeed --> results obtained only from the histograms451 // 2 9: Number of probable pickup events in the Hi Gain452 // 30: Number of probable pickup events in the Lo Gain449 // 26: Excluded Pixels 450 // 27: Pixels where the fit did not succeed --> results obtained only from the histograms 451 // 28: Number of probable pickup events in the Hi Gain 452 // 29: Number of probable pickup events in the Lo Gain 453 453 // 454 454 // Other classifications of pixels: 455 455 // ================================ 456 456 // 457 // 31: Pixels with saturated Hi-Gain 458 // 459 // Classification of validity of the calibrations: 460 // =============================================== 461 // 462 // 32: Pixels with valid calibration by the F-Factor-Method 463 // 33: Pixels with valid calibration by the Blind Pixel-Method 464 // 34: Pixels with valid calibration by the PIN Diode-Method 457 // 30: Pixels with saturated Hi-Gain 465 458 // 466 459 // Used Pedestals: 467 460 // =============== 468 461 // 469 // 3 5: Mean Pedestal over the entire range of signal extraction470 // 3 6: Error on the Mean Pedestal over the entire range of signal extraction471 // 3 7: Pedestal RMS over the entire range of signal extraction472 // 3 8: Error on the Pedestal RMS over the entire range of signal extraction462 // 31: Mean Pedestal over the entire range of signal extraction 463 // 32: Error on the Mean Pedestal over the entire range of signal extraction 464 // 33: Pedestal RMS over the entire range of signal extraction 465 // 34: Error on the Pedestal RMS over the entire range of signal extraction 473 466 // 474 467 // Calculated absolute arrival times (very low precision!): 475 468 // ======================================================== 476 469 // 477 // 3 9: Absolute Arrival time of the signal478 // 40: RMS of the Absolute Arrival time of the signal470 // 35: Absolute Arrival time of the signal 471 // 36: RMS of the Absolute Arrival time of the signal 479 472 // 480 473 Bool_t MCalibrationChargeCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const … … 592 585 break; 593 586 case 15: 594 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsBlindPixelMethodValid()) 595 return kFALSE; 596 // val = fBlindPixel->GetMeanFluxInsidePlexiglass()*area; 597 val = 1.; 587 if ((*this)[idx].IsExcluded()) 588 return kFALSE; 589 if ((*this)[idx].IsFFactorMethodValid()) 590 val = 1; 591 else 592 return kFALSE; 598 593 break; 599 594 case 16: 600 595 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsBlindPixelMethodValid()) 601 596 return kFALSE; 602 // val = fBlindPixel->GetMeanFluxErrInsidePlexiglass()*area; 603 val = 1.; 597 val = (*this)[idx].GetMeanConversionBlindPixelMethod(); 604 598 break; 605 599 case 17: 606 600 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsBlindPixelMethodValid()) 607 601 return kFALSE; 608 val = (*this)[idx].Get MeanConversionBlindPixelMethod();602 val = (*this)[idx].GetConversionBlindPixelMethodErr(); 609 603 break; 610 604 case 18: 611 605 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsBlindPixelMethodValid()) 612 606 return kFALSE; 613 val = (*this)[idx].Get ConversionBlindPixelMethodErr();607 val = (*this)[idx].GetTotalFFactorBlindPixelMethod(); 614 608 break; 615 609 case 19: 616 610 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsBlindPixelMethodValid()) 617 611 return kFALSE; 618 val = (*this)[idx].GetTotalFFactorBlindPixelMethod ();612 val = (*this)[idx].GetTotalFFactorBlindPixelMethodErr(); 619 613 break; 620 614 case 20: 621 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsBlindPixelMethodValid()) 622 return kFALSE; 623 val = (*this)[idx].GetTotalFFactorBlindPixelMethodErr(); 615 if ((*this)[idx].IsExcluded()) 616 return kFALSE; 617 if ((*this)[idx].IsBlindPixelMethodValid()) 618 val = 1; 619 else 620 return kFALSE; 624 621 break; 625 622 case 21: 626 623 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsPINDiodeMethodValid()) 627 624 return kFALSE; 628 // val = fPINDiode->GetMeanFluxOutsidePlexiglass()*area; 629 val = 1.; 625 val = (*this)[idx].GetMeanConversionPINDiodeMethod(); 630 626 break; 631 627 case 22: 632 628 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsPINDiodeMethodValid()) 633 629 return kFALSE; 634 // val = fPINDiode->GetMeanFluxErrOutsidePlexiglass()*area; 635 val = 1.; 630 val = (*this)[idx].GetConversionPINDiodeMethodErr(); 636 631 break; 637 632 case 23: 638 633 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsPINDiodeMethodValid()) 639 634 return kFALSE; 640 val = (*this)[idx].Get MeanConversionPINDiodeMethod();635 val = (*this)[idx].GetTotalFFactorPINDiodeMethod(); 641 636 break; 642 637 case 24: 643 638 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsPINDiodeMethodValid()) 644 639 return kFALSE; 645 val = (*this)[idx].Get ConversionPINDiodeMethodErr();640 val = (*this)[idx].GetTotalFFactorPINDiodeMethodErr(); 646 641 break; 647 642 case 25: 648 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsPINDiodeMethodValid()) 649 return kFALSE; 650 val = (*this)[idx].GetTotalFFactorPINDiodeMethod(); 643 if ((*this)[idx].IsExcluded()) 644 return kFALSE; 645 if ((*this)[idx].IsPINDiodeMethodValid()) 646 val = 1; 647 else 648 return kFALSE; 651 649 break; 652 650 case 26: 653 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsPINDiodeMethodValid())654 return kFALSE;655 val = (*this)[idx].GetTotalFFactorPINDiodeMethodErr();656 break;657 case 27:658 651 if ((*this)[idx].IsExcluded()) 659 652 val = 1.; … … 661 654 return kFALSE; 662 655 break; 663 case 2 8:656 case 27: 664 657 if ((*this)[idx].IsExcluded()) 665 658 return kFALSE; … … 669 662 return kFALSE; 670 663 break; 664 case 28: 665 if ((*this)[idx].IsExcluded()) 666 return kFALSE; 667 val = (*this)[idx].GetHiGainNumPickup(); 668 break; 671 669 case 29: 672 670 if ((*this)[idx].IsExcluded()) 673 671 return kFALSE; 674 val = (*this)[idx].Get HiGainNumPickup();672 val = (*this)[idx].GetLoGainNumPickup(); 675 673 break; 676 674 case 30: 677 675 if ((*this)[idx].IsExcluded()) 678 676 return kFALSE; 679 val = (*this)[idx]. GetLoGainNumPickup();677 val = (*this)[idx].IsHiGainSaturation(); 680 678 break; 681 679 case 31: 682 680 if ((*this)[idx].IsExcluded()) 683 681 return kFALSE; 684 val = (*this)[idx]. IsHiGainSaturation();682 val = (*this)[idx].GetPed(); 685 683 break; 686 684 case 32: 687 685 if ((*this)[idx].IsExcluded()) 688 686 return kFALSE; 689 if ((*this)[idx].IsFFactorMethodValid()) 690 val = 1; 691 else 692 return kFALSE; 687 val = (*this)[idx].GetPedErr(); 693 688 break; 694 689 case 33: 695 690 if ((*this)[idx].IsExcluded()) 696 691 return kFALSE; 697 if ((*this)[idx].IsBlindPixelMethodValid()) 698 val = 1; 699 else 700 return kFALSE; 692 val = (*this)[idx].GetPedRms(); 701 693 break; 702 694 case 34: 703 695 if ((*this)[idx].IsExcluded()) 704 696 return kFALSE; 705 if ((*this)[idx].IsPINDiodeMethodValid()) 706 val = 1; 707 else 708 return kFALSE; 697 val = (*this)[idx].GetPedErr()/2.; 709 698 break; 710 699 case 35: 711 700 if ((*this)[idx].IsExcluded()) 712 701 return kFALSE; 713 val = (*this)[idx].Get Ped();702 val = (*this)[idx].GetAbsTimeMean(); 714 703 break; 715 704 case 36: 716 if ((*this)[idx].IsExcluded())717 return kFALSE;718 val = (*this)[idx].GetPedErr();719 break;720 case 37:721 if ((*this)[idx].IsExcluded())722 return kFALSE;723 val = (*this)[idx].GetPedRms();724 break;725 case 38:726 if ((*this)[idx].IsExcluded())727 return kFALSE;728 val = (*this)[idx].GetPedErr()/2.;729 break;730 case 39:731 if ((*this)[idx].IsExcluded())732 return kFALSE;733 val = (*this)[idx].GetAbsTimeMean();734 break;735 case 40:736 705 if ((*this)[idx].IsExcluded()) 737 706 return kFALSE; -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
r3511 r3551 20 20 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 !23 22 \* ======================================================================== */ 24 25 23 ///////////////////////////////////////////////////////////////////////////// 26 24 // // -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeBlindPix.cc
r3445 r3551 89 89 const Double_t MHCalibrationChargeBlindPix::gkElectronicAmpErr = 0.002; 90 90 91 const Int_t MHCalibrationChargeBlindPix::fgChargeNbins = 1400;92 const Axis_t MHCalibrationChargeBlindPix::fgChargeFirst = - 200.5;93 const Axis_t MHCalibrationChargeBlindPix::fgChargeLast = 1199.5;91 const Int_t MHCalibrationChargeBlindPix::fgChargeNbins = 5300; 92 const Axis_t MHCalibrationChargeBlindPix::fgChargeFirst = -100.5; 93 const Axis_t MHCalibrationChargeBlindPix::fgChargeLast = 5199.5; 94 94 95 95 const Float_t MHCalibrationChargeBlindPix::fgSinglePheCut = 200.; … … 116 116 SetSinglePheCut(); 117 117 SetNumSinglePheLimit(); 118 119 SetBinsAfterStripping(30); 118 120 119 121 fHGausHist.SetName("HCalibrationChargeBlindPix"); -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r3496 r3551 65 65 #include <TCanvas.h> 66 66 #include <TPad.h> 67 #include <TText.h> 68 #include <TPaveText.h> 67 69 68 70 #include "MLog.h" … … 151 153 fNumOuterPixels = 0; 152 154 fNumExcluded = 0; 155 156 fAverageInnerSat = 0; 157 fAverageOuterSat = 0; 158 fAverageInnerPixSigma = 0.; 159 fAverageOuterPixSigma = 0.; 160 fAverageInnerPixSigmaErr = 0.; 161 fAverageOuterPixSigmaErr = 0.; 162 fAverageInnerPixRelSigma = 0.; 163 fAverageOuterPixRelSigma = 0.; 164 fAverageInnerPixRelSigmaErr = 0.; 165 fAverageOuterPixRelSigmaErr = 0.; 166 153 167 } 154 168 … … 169 183 delete fAverageHiGainOuterPix; 170 184 delete fAverageLoGainOuterPix; 185 171 186 } 172 187 … … 542 557 FinalizeLoGainHists(*fAverageLoGainOuterPix,*fCam->GetAverageOuterPix(),*fCam->GetAverageOuterBadPix()); 543 558 544 fCam->GetAverageInnerPix()->SetSigmaCharge (fCam->GetAverageInnerPix()->GetSigmaCharge()545 *TMath::Sqrt((Float_t)fNumInnerPixels));546 fCam->GetAverageOuterPix()->SetSigmaCharge (fCam->GetAverageOuterPix()->GetSigmaCharge()547 *TMath::Sqrt((Float_t)fNumOuterPixels));548 fCam->GetAverageInnerPix()->SetSigmaChargeErr(fCam->GetAverageInnerPix()->GetSigmaChargeErr()549 *TMath::Sqrt((Float_t)fNumInnerPixels));550 fCam->GetAverageOuterPix()->SetSigmaChargeErr(fCam->GetAverageOuterPix()->GetSigmaChargeErr()551 *TMath::Sqrt((Float_t)fNumOuterPixels));552 559 FinalizeAveragePix(*fCam->GetAverageInnerPix(),fNumInnerPixels, 560 fAverageInnerPixSigma, fAverageInnerPixSigmaErr, 561 fAverageInnerPixRelSigma, fAverageInnerPixRelSigmaErr, 562 fAverageInnerSat); 563 FinalizeAveragePix(*fCam->GetAverageOuterPix(),fNumOuterPixels, 564 fAverageOuterPixSigma, fAverageOuterPixSigmaErr, 565 fAverageOuterPixRelSigma, fAverageOuterPixRelSigmaErr, 566 fAverageOuterSat); 567 553 568 return kTRUE; 554 569 } … … 693 708 } 694 709 } 710 711 void MHCalibrationChargeCam::FinalizeAveragePix(MCalibrationChargePix &pix, Int_t npix, 712 Float_t &sigma, Float_t &sigmaerr, 713 Float_t &relsigma, Float_t &relsigmaerr, 714 Bool_t &b) 715 { 716 717 if (pix.IsHiGainSaturation()) 718 b = kTRUE; 719 720 sigma = pix.GetSigmaCharge () * TMath::Sqrt((Float_t)npix); 721 sigmaerr = pix.GetSigmaChargeErr () * TMath::Sqrt((Float_t)npix); 722 723 relsigma = sigma / pix.GetMeanCharge(); 724 725 relsigmaerr = sigmaerr*sigmaerr / sigma / sigma; 726 relsigmaerr += pix.GetMeanChargeErr()*pix.GetMeanChargeErr() / pix.GetMeanCharge() / pix.GetMeanCharge(); 727 728 relsigmaerr *= relsigma; 729 relsigmaerr = TMath::Sqrt(relsigmaerr); 730 731 pix.SetSigmaCharge (sigma); 732 pix.SetSigmaChargeErr(sigmaerr); 733 734 } 735 695 736 696 737 Bool_t MHCalibrationChargeCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const … … 729 770 pad->cd(1); 730 771 731 if (!fAverageHiGainInnerPix->IsEmpty())732 gPad->SetLogy();733 772 fAverageHiGainInnerPix->Draw(opt); 773 774 if (!fAverageInnerSat) 775 DrawAverageSigma(fAverageInnerSat, 1, 776 fAverageInnerPixSigma, fAverageInnerPixSigmaErr, 777 fAverageInnerPixRelSigma, fAverageInnerPixRelSigmaErr); 734 778 735 779 pad->cd(2); 736 780 737 if (!fAverageLoGainInnerPix->IsEmpty())738 gPad->SetLogy();739 781 fAverageLoGainInnerPix->Draw(opt); 740 782 783 if (fAverageInnerSat) 784 DrawAverageSigma(fAverageInnerSat, 1, 785 fAverageInnerPixSigma, fAverageInnerPixSigmaErr, 786 fAverageInnerPixRelSigma, fAverageInnerPixRelSigmaErr); 787 741 788 pad->cd(3); 742 789 743 if (!fAverageHiGainOuterPix->IsEmpty())744 gPad->SetLogy();745 790 fAverageHiGainOuterPix->Draw(opt); 746 791 792 if (!fAverageOuterSat) 793 DrawAverageSigma(fAverageOuterSat, 0, 794 fAverageOuterPixSigma, fAverageOuterPixSigmaErr, 795 fAverageOuterPixRelSigma, fAverageOuterPixRelSigmaErr); 796 747 797 pad->cd(4); 748 798 749 if (!fAverageLoGainOuterPix->IsEmpty())750 gPad->SetLogy();751 799 fAverageLoGainOuterPix->Draw(opt); 752 800 753 } 801 if (fAverageOuterSat) 802 DrawAverageSigma(fAverageOuterSat, 0, 803 fAverageOuterPixSigma, fAverageOuterPixSigmaErr, 804 fAverageOuterPixRelSigma, fAverageOuterPixRelSigmaErr); 805 } 806 807 void MHCalibrationChargeCam::DrawAverageSigma(Bool_t sat, Bool_t inner, 808 Float_t sigma, Float_t sigmaerr, 809 Float_t relsigma, Float_t relsigmaerr) const 810 { 811 812 if (sigma != 0) 813 { 814 815 TPad *newpad = new TPad("newpad","transparent",0,0,1,1); 816 newpad->SetFillStyle(4000); 817 newpad->Draw(); 818 newpad->cd(); 819 820 TPaveText *text = new TPaveText(sat? 0.1 : 0.35,0.7,sat ? 0.4 : 0.7,1.0); 821 text->SetTextSize(0.07); 822 const TString line1 = Form("%s%s%s",inner ? "Inner" : "Outer", 823 " Pixels ", sat ? "Low Gain" : "High Gain"); 824 TText *txt1 = text->AddText(line1.Data()); 825 const TString line2 = Form("Sigma per Pixel: %2.2f #pm %2.2f",sigma,sigmaerr); 826 TText *txt2 = text->AddText(line2.Data()); 827 const TString line3 = Form("Rel. Sigma per Pixel: %2.2f #pm %2.2f",relsigma,relsigmaerr); 828 TText *txt3 = text->AddText(line3.Data()); 829 text->Draw(""); 830 831 text->SetBit(kCanDelete); 832 txt1->SetBit(kCanDelete); 833 txt2->SetBit(kCanDelete); 834 txt3->SetBit(kCanDelete); 835 newpad->SetBit(kCanDelete); 836 } 837 } 838 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.h
r3429 r3551 13 13 #endif 14 14 15 class TText; 15 16 class MRawEvtData; 16 17 class MGeomCam; … … 47 48 Int_t fNumExcluded; 48 49 50 Bool_t fAverageInnerSat; 51 Bool_t fAverageOuterSat; 52 53 Float_t fAverageInnerPixSigma; 54 Float_t fAverageOuterPixSigma; 55 56 Float_t fAverageInnerPixSigmaErr; 57 Float_t fAverageOuterPixSigmaErr; 58 59 Float_t fAverageInnerPixRelSigma; 60 Float_t fAverageOuterPixRelSigma; 61 62 Float_t fAverageInnerPixRelSigmaErr; 63 Float_t fAverageOuterPixRelSigmaErr; 64 49 65 void FinalizeHiGainHists(MHCalibrationChargeHiGainPix &hist, MCalibrationChargePix &pix, MBadPixelsPix &bad); 50 66 void FinalizeLoGainHists(MHCalibrationChargeLoGainPix &hist, MCalibrationChargePix &pix, MBadPixelsPix &bad); 51 67 void FinalizeAveragePix (MCalibrationChargePix &pix, Int_t npix, 68 Float_t &sigma, Float_t &sigmaerr, 69 Float_t &relsigma, Float_t &relsigmaerr, 70 Bool_t &b); 71 void DrawAverageSigma(Bool_t sat, Bool_t inner, 72 Float_t sigma, Float_t sigmaerr, 73 Float_t relsigma, Float_t relsigmaerr) const; 74 52 75 public: 53 76 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.cc
r3428 r3551 211 211 gPad->SetTicks(); 212 212 213 fHGausHist.GetXaxis()->SetLabelSize(0.06); 214 fHGausHist.GetYaxis()->SetLabelSize(0.07); 215 fHGausHist.GetXaxis()->SetLabelOffset(0.01); 216 fHGausHist.GetYaxis()->SetLabelOffset(0.01); 217 fHGausHist.GetXaxis()->SetTitleSize(0.065); 218 fHGausHist.GetYaxis()->SetTitleSize(0.07); 219 fHGausHist.GetXaxis()->SetTitleOffset(0.6); 220 fHGausHist.GetYaxis()->SetTitleOffset(0.6); 213 221 fHGausHist.Draw(opt); 214 222 if (fFGausFit) … … 220 228 pad->cd(2); 221 229 gPad->SetTicks(); 230 231 fHAbsTime.GetXaxis()->SetLabelSize(0.06); 232 fHAbsTime.GetYaxis()->SetLabelSize(0.07); 233 fHAbsTime.GetXaxis()->SetLabelOffset(0.01); 234 fHAbsTime.GetYaxis()->SetLabelOffset(0.01); 235 fHAbsTime.GetXaxis()->SetTitleSize(0.065); 236 fHAbsTime.GetYaxis()->SetTitleSize(0.07); 237 fHAbsTime.GetXaxis()->SetTitleOffset(0.6); 238 fHAbsTime.GetYaxis()->SetTitleOffset(0.6); 222 239 fHAbsTime.Draw(opt); 223 240
Note:
See TracChangeset
for help on using the changeset viewer.