Changeset 8425 for trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.cc
- Timestamp:
- 04/20/07 12:48:09 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibCalcFromPast.cc
r8417 r8425 59 59 #include "MCalibrationIntensityChargeCam.h" 60 60 #include "MCalibrationIntensityBlindCam.h" 61 #include "MCalibrationIntensityQECam.h"62 61 //#include "MCalibrationIntensityRelTimeCam.h" 63 62 64 63 #include "MBadPixelsCam.h" 65 64 65 #include "MCalibrationQECam.h" 66 #include "MCalibrationQEPix.h" 66 67 #include "MCalibrationChargePix.h" 67 68 #include "MCalibrationChargeCalc.h" … … 126 127 127 128 // 128 // Look for the MBadPixels IntensityCam129 // Look for the MBadPixels Cam 129 130 // 130 131 fBadPixels = (MBadPixelsCam*)pList->FindObject("MBadPixelsCam"); … … 132 133 { 133 134 *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; 134 145 return kFALSE; 135 146 } … … 160 171 161 172 fIntensCharge = (MCalibrationIntensityChargeCam*)pList->FindCreateObj("MCalibrationIntensityChargeCam"); 162 fIntensQE = (MCalibrationIntensityQECam*) pList->FindCreateObj("MCalibrationIntensityQECam");163 164 173 if (!fIntensCharge) 165 174 return kFALSE; 166 if (!fIntensQE)167 return kFALSE;168 175 169 176 MCalibrationChargeCam *chargeinit = (MCalibrationChargeCam*)pList->FindObject("MCalibrationChargeCam"); 170 MCalibrationQECam *qeinit = (MCalibrationQECam*) pList->FindObject("MCalibrationQECam");171 177 172 178 if (chargeinit) … … 174 180 else 175 181 *fLog << "Could not find initial MCalibrationChargeCam, cannot initialize intensity cam" << endl; 176 177 if (qeinit)178 fIntensQE->SetCam(qeinit,0);179 else180 *fLog << "Could not find initial MCalibrationQECam, cannot initialize intensity cam" << endl;181 182 182 183 if (!fChargeCalc) … … 386 387 *fLog << "MBadPixelsCam..."; 387 388 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! 388 397 389 398 if (fIntensCharge) … … 404 413 } 405 414 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 }415 415 if (fIntensBlind) 416 416 {
Note:
See TracChangeset
for help on using the changeset viewer.