Changeset 5055


Ignore:
Timestamp:
09/15/04 23:51:58 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5054 r5055  
    4848
    4949#include "MParList.h"
     50#include "MTaskList.h"
    5051
    5152#include "MHCalibrationCam.h"
     
    115116    }
    116117
     118  MTaskList *tlist = (MTaskList*)pList->FindObject("MTaskList");
     119  if (!tlist)
     120    {
     121      *fLog << err << "MTaskList not found... abort." << endl;
     122      return kFALSE;
     123    }
     124
    117125  //
    118126  // Look for the MBadPixels Intensity Cam
     
    120128  fIntensBad = (MBadPixelsIntensityCam*)pList->FindCreateObj("MBadPixelsIntensityCam");
    121129
    122   *fLog << inf << GetDescriptor()
    123         << ": Found MBadPixelsIntensityCam ... " << endl;
     130  *fLog << inf << "Found MBadPixelsIntensityCam ... " << flush;
    124131  //
    125132  // Look for the MCalibrationIntensityBlindCam
     
    127134  fIntensBlind = (MCalibrationIntensityBlindCam*)pList->FindCreateObj("MCalibrationIntensityBlindCam");
    128135
    129   *fLog << inf << GetDescriptor()
    130         << ": Found MCalibrationIntensityBlindCam ... " << endl;
     136  *fLog << inf << "Found MCalibrationIntensityBlindCam ... " << flush;
    131137
    132138  //
     
    134140  // corresponding IntensityCam
    135141  //
    136   if (pList->FindObject(AddSerialNumber("FillChargeCam")))
     142  if (pList->FindObject(AddSerialNumber("MHCalibrationChargeCam")))
    137143  {
    138144
    139145    fIntensCharge = (MCalibrationIntensityChargeCam*)pList->FindCreateObj("MCalibrationIntensityChargeCam");
    140146    fIntensQE     = (MCalibrationIntensityQECam*)    pList->FindCreateObj("MCalibrationIntensityQECam");
    141     fChargeCalc   = (MCalibrationChargeCalc*)        pList->FindObject("MCalibrationChargeCalc");
    142 
    143     *fLog << inf << GetDescriptor()
    144           << ": Found MHCalibrationChargeCam ... " << endl;
     147
     148    fChargeCalc   = (MCalibrationChargeCalc*)tlist->FindObject("MCalibrationChargeCalc");
     149
     150    *fLog << inf << " Found MHCalibrationChargeCam ... " << endl;
    145151
    146152    if (!fIntensCharge)
     
    167173  // corresponding IntensityCam
    168174  //
    169   if (pList->FindObject(AddSerialNumber("FillRelTimeCam")))
     175  if (pList->FindObject(AddSerialNumber("MHCalibrationRelTimeCam")))
    170176  {
    171177
    172178    fIntensRelTime = (MCalibrationIntensityRelTimeCam*)pList->FindCreateObj("MCalibrationIntensityRelTimeCam");
    173     fRelTimeCalc   = (MCalibrationRelTimeCalc*)        pList->FindObject(AddSerialNumber("MCalibrationRelTimeCalc"));
     179    fRelTimeCalc   = (MCalibrationRelTimeCalc*)tlist->FindObject(AddSerialNumber("MCalibrationRelTimeCalc"));
    174180
    175181    *fLog << inf << GetDescriptor()
Note: See TracChangeset for help on using the changeset viewer.