Changeset 5557 for trunk/MagicSoft/Mars/callisto.cc
- Timestamp:
- 12/03/04 20:11:31 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/callisto.cc
r5387 r5557 280 280 { 281 281 // 282 // Calculate pedestal for calibration 283 // 284 MJPedestal job1(Form("MJPedestalC #%d", seq.GetSequence())); 282 // Calculate pedestal for pedestal-calculation and calibration 283 // 284 MJPedestal job1(Form("MJPedestalC1 #%d", seq.GetSequence())); 285 job1.SetNoStorage(); 285 286 job1.SetSequence(seq); 286 287 job1.SetEnv(kConfig); … … 305 306 306 307 // 307 // Do calibration 308 // 309 MJCalibration job2(Form("MJCalibration #%d", seq.GetSequence())); 308 // Calculate pedestal and pedestal resolution 309 // 310 MJPedestal job2(Form("MJPedestalC2 #%d", seq.GetSequence())); 311 job2.SetNoStorage(); 310 312 job2.SetSequence(seq); 311 313 job2.SetEnv(kConfig); 312 314 job2.SetEnvDebug(kDebugEnv); 313 315 job2.SetDisplay(d);; 316 job2.SetOverwrite(kOverwrite); 317 job2.SetPathData(kInpathD); 318 // job1.SetPathOut(kOutpathC); // not yet needed 319 // job1.SetPathIn(kInpathC); // not yet needed 320 321 job2.SetExtractorResolution(); 322 job2.SetExtractor(job1.GetExtractor()); 323 job2.SetPedestals(job1.GetPedestalCam()); 314 324 job2.SetBadPixels(job1.GetBadPixels()); 315 job2.SetOverwrite(kOverwrite); 316 job2.SetPathOut(kOutpathC); 317 job2.SetPathData(kInpathD); 325 326 if (!job2.ProcessFile()) 327 { 328 gLog << err << "Calculation of pedestal resolution failed." << endl << endl; 329 return -1; 330 } 331 332 if (!job2.GetDisplay()) 333 { 334 gLog << warn << "Display closed by user... execution aborted." << endl << endl; 335 return 1; 336 } 337 338 // 339 // Do calibration 340 // 341 MJCalibration job3(Form("MJCalibration #%d", seq.GetSequence())); 342 job3.SetSequence(seq); 343 job3.SetEnv(kConfig); 344 job3.SetEnvDebug(kDebugEnv); 345 job3.SetDisplay(d);; 346 job3.SetOverwrite(kOverwrite); 347 job3.SetPathOut(kOutpathC); 348 job3.SetPathData(kInpathD); 318 349 // job2.SetPathIn(kInpathC); // not yet needed 319 350 320 if (!job2.ProcessFile(job1.GetPedestalCam())) 351 job3.SetBadPixels(job2.GetBadPixels()); 352 job3.SetExtractor(job2.GetExtractor()); 353 job3.SetExtractorCam(job2.GetPedestalCam()); 354 355 if (!job3.ProcessFile(job1.GetPedestalCam())) 321 356 { 322 357 gLog << err << "Calculation of calibration failed." << endl << endl; … … 324 359 } 325 360 326 if (!job 2.GetDisplay())361 if (!job3.GetDisplay()) 327 362 { 328 363 gLog << warn << "Display closed by user... execution aborted." << endl << endl; … … 338 373 // Calculate starting pedestal for data extraction 339 374 // 340 MJPedestal job1(Form("MJPedestalY #%d", seq.GetSequence())); 375 MJPedestal job1(Form("MJPedestalY1 #%d", seq.GetSequence())); 376 job1.SetNoStorage(); 341 377 job1.SetSequence(seq); 342 378 job1.SetEnv(kConfig); 343 379 job1.SetEnvDebug(kDebugEnv); 344 380 job1.SetDisplay(d);; 381 job1.SetOverwrite(kOverwrite); 382 job1.SetPathData(kInpathD); 345 383 job1.SetPathIn(kInpathY); 346 384 //job1.SetPathOut(kOutpathY); // not yet needed 347 job1.SetPathData(kInpathD); 348 job1.SetOverwrite(kOverwrite); 385 job1.SetUseData(); 349 386 350 387 if (!job1.ProcessFile()) … … 360 397 } 361 398 399 // 400 // Calculate pedestal and pedestal resolution 401 // 402 MJPedestal job2(Form("MJPedestalY2 #%d", seq.GetSequence())); 403 job2.SetNoStorage(); 404 job2.SetSequence(seq); 405 job2.SetEnv(kConfig); 406 job2.SetEnvDebug(kDebugEnv); 407 job2.SetDisplay(d);; 408 job2.SetOverwrite(kOverwrite); 409 job2.SetPathData(kInpathD); 410 // job1.SetPathOut(kOutpathC); // not yet needed 411 // job1.SetPathIn(kInpathC); // not yet needed 412 413 job2.SetUseData(); 414 job2.SetExtractorResolution(); 415 job2.SetExtractor(job1.GetExtractor()); 416 job2.SetPedestals(job1.GetPedestalCam()); 417 job2.SetBadPixels(job1.GetBadPixels()); 418 419 if (!job2.ProcessFile()) 420 { 421 gLog << err << "Calculation of pedestal resolution failed." << endl << endl; 422 return -1; 423 } 424 425 if (!job2.GetDisplay()) 426 { 427 gLog << warn << "Display closed by user... execution aborted." << endl << endl; 428 return 1; 429 } 430 /* 362 431 // 363 432 // Extract signal and calibrate it … … 381 450 gLog << warn << "Display closed by user... execution aborted." << endl << endl; 382 451 return 1; 383 } 452 }*/ 384 453 } 385 454
Note:
See TracChangeset
for help on using the changeset viewer.