Changeset 3480


Ignore:
Timestamp:
03/11/04 18:45:30 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3479 r3480  
    6464     - use two loops over pixels in order to determine mean flux of phe;s to
    6565       discard pixels far outside the normal distribution
     66
     67   * mcalib/MCalibrate.cc
     68     - added case that no MBadPixelsCam is available.
     69
    6670
    6771 2004/03/10: Abelardo Moralejo
  • trunk/MagicSoft/Mars/mcalib/MCalibrate.cc

    r3466 r3480  
    9999//  - MCalibrationChargeCam
    100100//  - MExtractedSignalCam
     101//  - MBadPixelsCam
    101102//
    102103// The following output containers are also searched and created if
     
    117118
    118119    fBadPixels = (MBadPixelsCam*)pList->FindObject(AddSerialNumber("MBadPixelsCam"));
    119 
    120120    if (!fBadPixels)
    121     {
    122       *fLog << err << AddSerialNumber("MBadPixelsCam") << " not found ... aborting" << endl;
    123         return kFALSE;
    124     }
    125 
    126    if(fCalibrationMode>kNone)
     121      *fLog << warn << AddSerialNumber("MBadPixelsCam") << " not found ... no action" << endl;
     122   
     123    if(fCalibrationMode>kNone)
    127124      {
    128125
     
    228225        {
    229226
    230           MCalibrationChargePix &pix = (*fCalibrations)[pixidx];       
     227         
     228          MCalibrationChargePix &pix = (*fCalibrations)[pixidx];
    231229          MBadPixelsPix         &bad = (*fBadPixels)[pixidx];
    232230
    233           if (!bad.IsCalibrationResultOK())
    234             continue;
    235          
     231          if (fBadPixels)
     232            if (!bad.IsCalibrationResultOK())
     233              continue;
     234
    236235          switch(fCalibrationMode)
    237236            {
Note: See TracChangeset for help on using the changeset viewer.