Changeset 6199 for trunk/MagicSoft


Ignore:
Timestamp:
02/02/05 12:52:00 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6191 r6199  
    2222
    2323 2005/02/02 Markus Gaug
     24
     25   * mcalib/MCalibrateData.cc
     26     - catch the case in which no interlaced cal. events are being sent
     27       by the pulser box.
    2428
    2529   * mjobs/MJCalib.[h,cc]
  • 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              {
  • trunk/MagicSoft/Mars/mjobs/MJCalibTest.cc

    r6195 r6199  
    350350}
    351351
    352 Bool_t MJCalibTest::Process(MPedestalCam &pedcam)
    353 {
    354     // const TString fname = GetOutputFile();
    355  
    356 //  if (gSystem->AccessPathName(fname, kFileExists))
    357     return ProcessFile(pedcam);
    358  
    359     // return kTRUE;
    360 }
    361 
    362352Bool_t MJCalibTest::ProcessFile(MPedestalCam &pedcam)
    363353{
  • trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc

    r6197 r6199  
    541541
    542542
    543     MHCamEvent evt0(0, "PedFLG",      "Pedestal from Lo Gain;;P [fadc/sl]");
    544     MHCamEvent evt1(2, "PedRmsFLG",   "Pedestal RMS from Lo Gain;;\\sigma_{p} [fadc/sl]");
    545     MHCamEvent evt2(0, "Extra'd",     "Extracted Signal;;S [fadc/sl]");
     543    MHCamEvent evt0(0, "PedFLG",      "Fundamental Pedestal from Lo Gain;;P [cnts/sl]");
     544    MHCamEvent evt1(2, "PedRmsFLG",   "RMS from Extractor applied to ped.;;\\sigma_{p} [cnts/sl]");
     545    MHCamEvent evt2(0, "Extra'd",     "Extracted Signal;;S [cnts/sl]");
    546546    //    MHCamEvent evt3(4, "PedPhot",     "Calibrated Pedestal;;P [phe]");
    547     MHCamEvent evt4(5, "PedRMS",      "Calibrated Pedestal RMS;;\\sigma_{p} [phe]");
     547    MHCamEvent evt4(5, "PedRMS",      "Calibrated RMS from Extractor applied to ped.;;\\sigma_{p} [phe]");
    548548    MHCamEvent evt5(3, "Interp'd",    "Interpolated Signal;;S [phe]");
    549549    MHCamEvent evt6(2, "Unsuitable",  "Fraction of unsuitable events per Pixel;;[1]");
    550     MHCamEvent evt7(0, "Times",       "Arrival Time;;T [slice]");
    551     MHCamEvent evt8(0, "Conv",        "Calibration Conv. Factors;;[phe/fadc sl]");
     550    MHCamEvent evt7(0, "Times",       "Arrival Time;;T [fadc sl]");
     551    MHCamEvent evt8(0, "Conv",        "Calibration Conv. Factors;;[phe/fadc cnts]");
    552552
    553553    evt0.EnableVariance();
Note: See TracChangeset for help on using the changeset viewer.