Changeset 4618 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
08/16/04 11:05:05 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r4616 r4618  
    1919
    2020                                                 -*-*- END OF LINE -*-*-
     21
     22
     23 2004/08/16: Markus Gaug
     24 
     25   * mcalib/MHCalibrationCam.cc
     26     - add a criterion to stop the Finalize() if both fHiGainArray
     27       and fLoGainArray have not been expanded.
     28     - replace two gLog by *fLog
    2129
    2230
  • 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.