Changeset 4129
- Timestamp:
- 05/22/04 16:27:38 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r4126 r4129 665 665 666 666 *fLog << inf << endl; 667 *fLog << GetDescriptor() << ": Errors statistics:" << endl;667 *fLog << GetDescriptor() << ": Fatal errors statistics:" << endl; 668 668 669 669 PrintUncalibrated(MBadPixelsPix::kChargeIsPedestal, 670 670 Form("%s%2.1f%s","Signal less than ",fChargeLimit," Pedestal RMS: ")); 671 PrintUncalibrated(MBadPixelsPix::kChargeErrNotValid,672 Form("%s%2.1f%s","Signal Error smaller than ",fChargeErrLimit,": "));673 671 PrintUncalibrated(MBadPixelsPix::kChargeRelErrNotValid, 674 672 Form("%s%2.1f%s","Signal Error bigger than ",fChargeRelErrLimit," times Mean Signal: ")); … … 681 679 PrintUncalibrated(MBadPixelsPix::kMeanTimeInLast2Bins, 682 680 Form("%s%2.1f%s","Mean Abs. Arr. Time in Last ",2.," Bin(s): ")); 681 PrintUncalibrated(MBadPixelsPix::kDeviatingNumPhes, 682 "Pixels with deviating number of phes: "); 683 684 *fLog << inf << endl; 685 *fLog << GetDescriptor() << ": Unreliable errors statistics:" << endl; 686 683 687 PrintUncalibrated(MBadPixelsPix::kHiGainOscillating, 684 688 "Pixels with changing Hi Gain signal over time: "); 685 689 PrintUncalibrated(MBadPixelsPix::kLoGainOscillating, 686 690 "Pixels with changing Lo Gain signal over time: "); 687 PrintUncalibrated(MBadPixelsPix::kDeviatingNumPhes,688 "Pixels with deviating number of phes: ");689 691 PrintUncalibrated(MBadPixelsPix::kHiGainNotFitted, 690 692 "Pixels with unsuccesful Gauss fit to the Hi Gain: "); … … 755 757 { 756 758 757 if (cal.GetMean() < fChargeLimit*cal.GetPedRms()) 758 { 759 *fLog << warn << GetDescriptor() << ": Fitted Charge: " << cal.GetMean() << " is smaller than " 759 const Float_t mean = cal.IsHiGainSaturation() ? cal.GetConvertedLoGainMean() : cal.GetMean(); 760 const Float_t meanerr = cal.IsHiGainSaturation() ? cal.GetConvertedLoGainMeanErr() : cal.GetMeanErr(); 761 const Float_t sigma = cal.IsHiGainSaturation() ? cal.GetConvertedLoGainSigma() : cal.GetSigma(); 762 763 if (mean < fChargeLimit*cal.GetPedRms()) 764 { 765 *fLog << warn << GetDescriptor() << ": Fitted Charge: " << mean << " is smaller than " 760 766 << fChargeLimit << " Pedestal RMS: " << cal.GetPedRms() << " in Pixel " << cal.GetPixId() << endl; 761 767 bad.SetUncalibrated( MBadPixelsPix::kChargeIsPedestal); 762 768 } 763 769 764 if (cal.GetMeanErr() < fChargeErrLimit) 765 { 766 *fLog << warn << GetDescriptor() << ": Error of Fitted Charge: " << cal.GetMeanErr() 767 << " is smaller than " << fChargeErrLimit << " in Pixel " << cal.GetPixId() << endl; 768 bad.SetUncalibrated( MBadPixelsPix::kChargeErrNotValid ); 769 } 770 771 if (cal.GetMean() < fChargeRelErrLimit*cal.GetMeanErr()) 772 { 773 *fLog << warn << GetDescriptor() << ": Fitted Charge: " << cal.GetMean() << " is smaller than " 774 << fChargeRelErrLimit << "* its error: " << cal.GetMeanErr() 770 if (mean < fChargeRelErrLimit*meanerr) 771 { 772 *fLog << warn << GetDescriptor() << ": Fitted Charge: " << mean << " is smaller than " 773 << fChargeRelErrLimit << "* its error: " << meanerr 775 774 << " in Pixel " << cal.GetPixId() << endl; 776 775 bad.SetUncalibrated( MBadPixelsPix::kChargeRelErrNotValid ); 777 776 } 778 777 779 if ( cal.GetSigma()< cal.GetPedRms())780 { 781 *fLog << warn << GetDescriptor() << ": Sigma of Fitted Charge: " << cal.GetSigma()778 if (sigma < cal.GetPedRms()) 779 { 780 *fLog << warn << GetDescriptor() << ": Sigma of Fitted Charge: " << sigma 782 781 << " smaller than Pedestal RMS: " << cal.GetPedRms() << " in Pixel " << cal.GetPixId() << endl; 783 782 bad.SetUncalibrated( MBadPixelsPix::kChargeSigmaNotValid ); … … 812 811 // Sets pixel to MBadPixelsPix::kUnsuitableRun, if one of the following flags is set: 813 812 // - MBadPixelsPix::kChargeIsPedestal 814 // - MBadPixelsPix::kChargeErrNotValid815 813 // - MBadPixelsPix::kChargeRelErrNotValid 816 814 // - MBadPixelsPix::kChargeSigmaNotValid
Note:
See TracChangeset
for help on using the changeset viewer.