Ignore:
Timestamp:
02/02/05 12:52:00 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc

    r6093 r6199  
    513513                //
    514514                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;
    518515
    519516                const Float_t globmean = avpix.GetConvertedMean();
    520517                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                  }
    521526              }
    522 
     527           
    523528            switch(fCalibrationMode)
    524529              {
Note: See TracChangeset for help on using the changeset viewer.