Changeset 6078 for trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
- Timestamp:
- 01/28/05 11:18:44 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r6077 r6078 126 126 Bool_t MJCalibrateSignal::WriteResult(TObjArray &cont) 127 127 { 128 if (fPathOut.IsNull()) 129 { 130 *fLog << inf << "No output path specified via SetPathOut - no output written." << endl; 131 return kTRUE; 132 } 133 134 const TString oname = Form("%s/signal%08d.root", (const char*)fPathOut, fSequence.GetSequence()); 135 136 *fLog << inf << "Writing to file: " << oname << endl; 137 138 TFile file(oname, "RECREATE"); 139 140 *fLog << inf << " - MStatusDisplay..." << flush; 141 if (fDisplay && fDisplay->Write()<=0) 142 { 143 *fLog << err << "Unable to write MStatusDisplay to " << oname << endl; 144 return kFALSE; 145 } 146 *fLog << inf << "ok." << endl; 147 148 return fIsInterlaced ? WriteContainer(cont) : kTRUE; 128 const TString name(Form("signal%08d.root", fSequence.GetSequence())); 129 return WriteContainer(cont, name); 149 130 } 150 131 … … 272 253 MBadPixelsIntensityCam ibdcam; 273 254 274 TObjArray interlacedcont;275 interlacedcont.Add(&ichcam);276 interlacedcont.Add(&iqecam);277 interlacedcont.Add(&iblcam);278 interlacedcont.Add(&itmcam);279 interlacedcont.Add(&ibdcam);280 281 255 MHCalibrationChargeCam hchacam; 282 256 MHCalibrationChargeBlindCam hbndcam; 283 257 MHCalibrationChargePINDiode hpndiod; 284 258 MHCalibrationRelTimeCam hrelcam; 285 286 interlacedcont.Add(&hchacam);287 interlacedcont.Add(&hbndcam);288 interlacedcont.Add(&hpndiod);289 if (fIsRelTimesUpdate)290 interlacedcont.Add(&hrelcam);291 259 292 260 MCalibrationChargeCam calcam; … … 297 265 MCalibrationHiLoCam hilcam; 298 266 299 if (fIsHiLoCalibration)300 interlacedcont.Add(&hilcam);301 302 267 MBadPixelsCam badpix; 303 268 … … 351 316 plist.AddToList(&calibcont); 352 317 plist.AddToList(&hilcam); 353 354 if (fIsInterlaced)355 plist.AddToList(&interlacedcont);356 318 357 319 // Setup Tasklist … … 739 701 DisplayResult(plist); 740 702 703 TObjArray interlacedcont; 704 if (fIsInterlaced) 705 { 706 interlacedcont.Add(&ichcam); 707 interlacedcont.Add(&iqecam); 708 interlacedcont.Add(&iblcam); 709 interlacedcont.Add(&itmcam); 710 interlacedcont.Add(&ibdcam); 711 interlacedcont.Add(&hchacam); 712 interlacedcont.Add(&hbndcam); 713 interlacedcont.Add(&hpndiod); 714 if (fIsRelTimesUpdate) 715 interlacedcont.Add(&hrelcam); 716 if (fIsHiLoCalibration) 717 interlacedcont.Add(&hilcam); 718 } 719 741 720 if (!WriteResult(interlacedcont)) 742 721 return kFALSE;
Note:
See TracChangeset
for help on using the changeset viewer.