Ignore:
Timestamp:
08/16/04 11:05:05 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4609 r4618  
    448448      if (!fBadPixels)
    449449        {
    450           gLog << err << "Cannot find nor create MBadPixelsCam ... abort." << endl;
     450          *fLog << err << "Cannot find nor create MBadPixelsCam ... abort." << endl;
    451451          return kFALSE;
    452452        }
     
    561561  if (fHiGainArray->GetEntries() != npixels)
    562562    {
    563       gLog << err << "ERROR - Size mismatch... abort." << endl;
     563      *fLog << err << "ERROR - Size mismatch... abort." << endl;
    564564      return kFALSE;
    565565    }
     
    567567  if (fLoGainArray->GetEntries() != npixels)
    568568    {
    569       gLog << err << "ERROR - Size mismatch... abort." << endl;
     569      *fLog << err << "ERROR - Size mismatch... abort." << endl;
    570570      return kFALSE;
    571571    }
     
    606606// --------------------------------------------------------------------------
    607607//
     608// 0) Ask if fHiGainArray and fLoGainArray have been initialized,
     609//    otherwise return kFALSE.
    608610// 1) FinalizeHists()
    609611// 2) FinalizeBadPixels()
     
    612614Bool_t MHCalibrationCam::Finalize()
    613615{
     616
     617  if (fHiGainArray->GetEntries() == 0 && fLoGainArray->GetEntries() == 0)
     618    {
     619      *fLog << err << GetDescriptor()
     620            << ": ERROR: Both (HiGain and LoGain) histogram arrays have not been initialized... abort." << endl;
     621      return kFALSE;
     622    }
     623 
    614624  if (!FinalizeHists())
    615625    return kFALSE;
Note: See TracChangeset for help on using the changeset viewer.