Ignore:
Timestamp:
11/17/04 09:38:19 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5056 r5415  
    123123    }
    124124 
     125  //
     126  // Consider the case that a pedestal run is interleaved in the calibration run sequence ... prepare
     127  // to skip this run.
     128  //
     129  const UShort_t runtype = header->GetRunType();
     130
     131  if (runtype == 1)
     132    {
     133      *fLog << warn << "New run is a pedestal run... need intensity calibration to treat this case!" << endl;
     134      fPattern = 0;
     135      fIsValid = kTRUE;     
     136      return kTRUE;
     137    }
     138
    125139  enum { kNONE, kGREEN, kBLUE, kUV, kCT1 };
    126140 
     
    192206    case 22246:
    193207    case 22253:
     208    case 25792:
     209    case 35415:
     210      //    case 31756:
    194211      color = kBLUE;
    195212      break;
     
    387404
    388405  if (fIsValid)
    389     fHeader->SetCalibrationPattern(fPattern);
     406    {
     407      if (fPattern == 0)
     408        {
     409          *fLog << err << "CONTINUE " << endl;
     410          return kCONTINUE;
     411        }
     412      fHeader->SetCalibrationPattern(fPattern);
     413    }
     414 
    390415  return kTRUE;
    391416}
Note: See TracChangeset for help on using the changeset viewer.