Ignore:
Timestamp:
04/20/07 12:48:09 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8417 r8425  
    5959#include "MCalibrationIntensityChargeCam.h"
    6060#include "MCalibrationIntensityBlindCam.h"
    61 #include "MCalibrationIntensityQECam.h"
    6261#include "MCalibrationIntensityRelTimeCam.h"
    6362
    6463#include "MCalibrationPattern.h"
     64#include "MCalibrationQECam.h"
    6565#include "MCalibrationChargeCam.h"
    6666#include "MCalibrationChargeCalc.h"
     
    156156  if (pList->FindObject(AddSerialNumber("MHCalibrationChargeCam")))
    157157  {
    158 
    159     fIntensCharge = (MCalibrationIntensityChargeCam*)pList->FindCreateObj("MCalibrationIntensityChargeCam");
    160     fIntensQE     = (MCalibrationIntensityQECam*)    pList->FindCreateObj("MCalibrationIntensityQECam");
    161 
    162     fChargeCalc   = (MCalibrationChargeCalc*)tlist->FindObject("MCalibrationChargeCalc");
    163 
    164     *fLog << inf << "Found MHCalibrationChargeCam ... " << flush;
    165 
    166     if (!fIntensCharge)
     158      *fLog << inf << "Found MHCalibrationChargeCam ... " << flush;
     159
     160      fIntensCharge = (MCalibrationIntensityChargeCam*)pList->FindCreateObj("MCalibrationIntensityChargeCam");
     161      if (!fIntensCharge)
     162          return kFALSE;
     163
     164      fQECam = (MCalibrationQECam*)pList->FindCreateObj("MCalibrationQECam");
     165      if (!fQECam)
     166          return kFALSE;
     167
     168      fChargeCalc = (MCalibrationChargeCalc*)tlist->FindObject("MCalibrationChargeCalc");
     169      if (!fChargeCalc)
    167170      {
    168         *fLog << err << "Could not find nor create MCalibrationIntensityChargeCam abort... " << endl;
    169         return kFALSE;
    170       }
    171    
    172     if (!fIntensQE)
    173       {
    174         *fLog << err << "Could not find nor create MCalibrationIntensityQECam abort... " << endl;
    175         return kFALSE;
    176       }
    177    
    178     if (!fChargeCalc)
    179       {
    180         *fLog << err << "Could not find MCalibrationChargeCalc abort... " << endl;
    181         return kFALSE;
     171          *fLog << err << "Could not find MCalibrationChargeCalc abort... " << endl;
     172          return kFALSE;
    182173      }
    183174  }
    184      
     175
    185176  //
    186177  // Look for the MFillH name "FillRelTimeCam". In case yes, initialize the
     
    327318
    328319  fBad->Clear(); // FIXME:::::: MERGE PreExcl!!!!
     320  fQECam->Clear();
    329321
    330322  if (fIntensCharge)
     
    337329          return kFALSE;
    338330      *fLog << inf << "New MCalibrationChargeCam with name: " << cam->GetName() << endl;
    339     }
    340   if (fIntensQE)
    341     {
    342       fIntensQE->AddToList(Form("MCalibrationQECam%s",namep.Data()),*fGeom);
    343       *fLog << inf << "New MCalibrationQECam with: " << namep << endl;
    344331    }
    345332
Note: See TracChangeset for help on using the changeset viewer.