Changeset 3601 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 03/29/04 18:55:40 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r3560 r3601 113 113 fLoGainArray->SetOwner(); 114 114 115 fAverageHiGainInnerPix = new MHCalibrationChargeHiGainPix("AverageHiGainInnerPix","Average HiGain FADC sums of inner pixels"); 116 fAverageLoGainInnerPix = new MHCalibrationChargeLoGainPix("AverageLoGainInnerPix","Average LoGain FADC sums of inner pixels"); 117 fAverageHiGainOuterPix = new MHCalibrationChargeHiGainPix("AverageHiGainOuterPix","Average HiGain FADC sums of outer pixels"); 118 fAverageLoGainOuterPix = new MHCalibrationChargeLoGainPix("AverageLoGainOuterPix","Average LoGain FADC sums of outer pixels"); 119 120 /* 121 fAverageHiGainInnerPix->GetHGausHist()->SetName("HCalibrationChargeAverageInnerHiGainPix"); 122 fAverageHiGainOuterPix->GetHGausHist()->SetName("HCalibrationChargeAverageOuterHiGainPix"); 123 fAverageLoGainInnerPix->GetHGausHist()->SetName("HCalibrationChargeAverageInnerLoGainPix"); 124 fAverageLoGainOuterPix->GetHGausHist()->SetName("HCalibrationChargeAverageOuterLoGainPix"); 125 */ 115 fAverageHiGainInnerPix = new MHCalibrationChargeHiGainPix("AverageHiGainInnerPix", 116 "Average HiGain FADC sums of inner pixels"); 117 fAverageLoGainInnerPix = new MHCalibrationChargeLoGainPix("AverageLoGainInnerPix", 118 "Average LoGain FADC sums of inner pixels"); 119 fAverageHiGainOuterPix = new MHCalibrationChargeHiGainPix("AverageHiGainOuterPix", 120 "Average HiGain FADC sums of outer pixels"); 121 fAverageLoGainOuterPix = new MHCalibrationChargeLoGainPix("AverageLoGainOuterPix", 122 "Average LoGain FADC sums of outer pixels"); 123 126 124 fAverageHiGainInnerPix->GetHGausHist()->SetTitle("Summed FADC slices average Inner pixels HiGain"); 127 125 fAverageLoGainInnerPix->GetHGausHist()->SetTitle("Summed FADC slices average Inner pixels LoGain"); … … 348 346 if ((*fBadPixels)[i].IsBad()) 349 347 { 350 fNumExcluded++; 351 (*this)[i].SetExcluded(); 348 *fLog << warn << "Excluded pixel: " << i << " from calibration " << endl; 349 fNumExcluded++; 350 (*this)[i].SetExcluded(); 352 351 } 353 352 (*this)[i].Init(); … … 576 575 if (hist.IsEmpty()) 577 576 { 577 *fLog << warn << "Empty Hi Gain histogram in pixel: " << pix.GetPixId() << endl; 578 578 bad.SetUnsuitable(MBadPixelsPix::kUnsuitableRun); 579 579 return; … … 583 583 { 584 584 pix.SetHiGainSaturation(); 585 bad.SetHiGainSaturation();586 585 return; 587 586 } … … 597 596 { 598 597 hist.BypassFit(); 599 bad.SetHiGainNotFitted(); 600 bad.SetUnsuitable(MBadPixelsPix::kUnreliableRun); 598 *fLog << warn << "Hi Gain could not be fitted in pixel: " << pix.GetPixId() << endl; 599 bad.SetUncalibrated( MBadPixelsPix::kHiGainNotFitted ); 600 bad.SetUnsuitable( MBadPixelsPix::kUnreliableRun ); 601 601 } 602 602 … … 627 627 if (!hist.IsFourierSpectrumOK()) 628 628 { 629 bad.SetHiGainOscillating(); 630 bad.SetUnsuitable(MBadPixelsPix::kUnreliableRun); 629 *fLog << warn << "Oscillating Hi Gain in pixel: " << pix.GetPixId() << endl; 630 bad.SetUncalibrated( MBadPixelsPix::kHiGainOscillating ); 631 bad.SetUnsuitable( MBadPixelsPix::kUnreliableRun ); 631 632 } 632 633 } … … 648 649 { 649 650 pix.SetLoGainSaturation(); 650 bad.SetLoGainSaturation(); 651 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun);651 bad.SetUncalibrated( MBadPixelsPix::kLoGainSaturation ); 652 bad.SetUnsuitable( MBadPixelsPix::kUnsuitableRun ); 652 653 return; 653 654 } … … 663 664 { 664 665 hist.BypassFit(); 665 bad.SetLoGainNotFitted();666 bad.SetUncalibrated( MBadPixelsPix::kLoGainNotFitted ); 666 667 if (pix.IsHiGainSaturation()) 667 668 bad.SetUnsuitable(MBadPixelsPix::kUnreliableRun); … … 697 698 if (!hist.IsFourierSpectrumOK()) 698 699 { 699 bad.Set LoGainOscillating();700 bad.SetUncalibrated( MBadPixelsPix::kLoGainOscillating ); 700 701 if (pix.IsHiGainSaturation()) 701 702 bad.SetUnsuitable(MBadPixelsPix::kUnreliableRun);
Note:
See TracChangeset
for help on using the changeset viewer.