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/MCalibCalcFromPast.cc

    r8417 r8425  
    5959#include "MCalibrationIntensityChargeCam.h"
    6060#include "MCalibrationIntensityBlindCam.h"
    61 #include "MCalibrationIntensityQECam.h"
    6261//#include "MCalibrationIntensityRelTimeCam.h"
    6362
    6463#include "MBadPixelsCam.h"
    6564
     65#include "MCalibrationQECam.h"
     66#include "MCalibrationQEPix.h"
    6667#include "MCalibrationChargePix.h"
    6768#include "MCalibrationChargeCalc.h"
     
    126127
    127128  //
    128   // Look for the MBadPixels Intensity Cam
     129  // Look for the MBadPixels Cam
    129130  //
    130131  fBadPixels = (MBadPixelsCam*)pList->FindObject("MBadPixelsCam");
     
    132133  {
    133134      *fLog << err << "MBadPixelsCam not found... abort." << endl;
     135      return kFALSE;
     136  }
     137
     138  //
     139  // Look for the MBadPixels Intensity Cam
     140  //
     141  fQECam = (MCalibrationQECam*)pList->FindObject("MCalibrationQECam");
     142  if (!fQECam)
     143  {
     144      *fLog << err << "MCalibrationQECam not found... abort." << endl;
    134145      return kFALSE;
    135146  }
     
    160171
    161172    fIntensCharge = (MCalibrationIntensityChargeCam*)pList->FindCreateObj("MCalibrationIntensityChargeCam");
    162     fIntensQE     = (MCalibrationIntensityQECam*)    pList->FindCreateObj("MCalibrationIntensityQECam");
    163 
    164173    if (!fIntensCharge)
    165174        return kFALSE;
    166     if (!fIntensQE)
    167         return kFALSE;
    168175
    169176    MCalibrationChargeCam *chargeinit = (MCalibrationChargeCam*)pList->FindObject("MCalibrationChargeCam");
    170     MCalibrationQECam     *qeinit     = (MCalibrationQECam*)    pList->FindObject("MCalibrationQECam");
    171177
    172178    if (chargeinit)
     
    174180    else
    175181      *fLog << "Could not find initial MCalibrationChargeCam, cannot initialize intensity cam" << endl;
    176 
    177     if (qeinit)
    178       fIntensQE->SetCam(qeinit,0);
    179     else
    180       *fLog << "Could not find initial MCalibrationQECam, cannot initialize intensity cam" << endl;
    181182
    182183    if (!fChargeCalc)
     
    386387  *fLog << "MBadPixelsCam...";
    387388  fBadPixels->Clear();  // FIXME:::::: MERGE PreExcl!!!!
     389  // IS IT REALLY NECESSARY?
     390
     391  *fLog << "MCalibrationQECam...";
     392  fQECam->Clear();
     393  fQECam->SetRunNumber(runnumber);
     394  // IS IT REALLY NECESSARY?
     395
     396  // IF SIMPLE ENOUGH, REMOVE THE FUNCTION!
    388397
    389398  if (fIntensCharge)
     
    404413  }
    405414
    406   if (fIntensQE)
    407   {
    408       *fLog << "MCalibrationQECam...";
    409       MCalibrationCam *cold = fIntensQE->GetCam();
    410       fIntensQE->AddToList(Form("MCalibrationQECam%04d",fNumCam),*fGeom);
    411       fIntensQE->GetCam()->SetRunNumber(runnumber);
    412       if (cold)
    413           fIntensQE->DeleteOldCam(cold);
    414   }
    415415  if (fIntensBlind)
    416416  {
Note: See TracChangeset for help on using the changeset viewer.