Ignore:
Timestamp:
11/15/04 10:14:33 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5302 r5401  
    825825  // Re-direct the output to an ascii-file from now on:
    826826  //
     827  MLog *oldlog = fLog;
    827828  MLog asciilog;
    828   asciilog.SetOutputFile(GetOutputFile(),kTRUE);
    829   SetLogStream(&asciilog);
     829  if (!fOutputFile.IsNull())
     830  {
     831      asciilog.SetOutputFile(GetOutputFile(),kTRUE);
     832      SetLogStream(&asciilog);
     833  }
     834
    830835  //
    831836  // Finalize calibration statistics
     
    874879                    "Pixels with unsuccesful Gauss fit to the Lo Gain: ");
    875880
    876   SetLogStream(&gLog);
     881  if (!fOutputFile.IsNull())
     882      SetLogStream(oldlog);
    877883
    878884  return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.