Changeset 6199 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 02/02/05 12:52:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r6093 r6199 513 513 // 514 514 MCalibrationChargePix &ugpix = (MCalibrationChargePix&)updatecam->GetAverageArea(0); 515 // MBadPixelsPix &ubad = (MBadPixelsPix&) updatecam->GetAverageBadArea(0);516 // if (ubad.IsUnsuitable())517 // *fLog << err << "Average Area is unsuitable!!!!" << endl;518 515 519 516 const Float_t globmean = avpix.GetConvertedMean(); 520 517 calibUpdate = (globmean == 0.) ? 1. : ugpix.GetConvertedMean() / globmean; 518 519 MBadPixelsPix &ubad = (MBadPixelsPix&) updatecam->GetAverageBadArea(0); 520 if (ubad.IsUncalibrated(MBadPixelsPix::kChargeIsPedestal)) 521 { 522 *fLog << warn << GetDescriptor() << "Probably calibration pulses have been lost!!!!" << endl; 523 *fLog << warn << "Will not update calib. factors any more!!!!" << endl; 524 calibUpdate = 1.; 525 } 521 526 } 522 527 523 528 switch(fCalibrationMode) 524 529 {
Note:
See TracChangeset
for help on using the changeset viewer.