Changeset 6006 for trunk/MagicSoft


Ignore:
Timestamp:
01/25/05 23:19:27 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhcalib/MHCalibrationHiLoCam.cc

    r6005 r6006  
    234234{
    235235
    236   if (!InitCams(pList,"HiLo"))
    237     return kFALSE;
     236  fCam = (MCalibrationCam*)plist->FindObject(AddSerialNumber("MCalibrationHiLoCam"));
     237  if (!fCam)
     238    {
     239      fCam = (MCalibrationCam*)plist->FindCreateObj(AddSerialNumber("MCalibrationHiLoCam"));
     240      if (!fCam)
     241        {
     242          *fLog << err << "Cannot find nor create MCalibrationHiLoCam... abort." << endl;
     243          return kFALSE;
     244        }
     245      fCam->Init(*fGeom);
     246    }
    238247
    239248  MExtractedSignalCam *signal = (MExtractedSignalCam*)pList->FindObject("MExtractedSignalCam");
     
    398407  *fLog << endl;
    399408
    400   MCalibrationCam *hilocam = fIntensCam ? fIntensCam->GetCam() : fCam;
     409  MCalibrationCam *hilocam = fCam;
    401410  MBadPixelsCam   *badcam  = fIntensBad ? fIntensBad->GetCam() : fBadPixels;
    402411
Note: See TracChangeset for help on using the changeset viewer.