Changeset 3479 for trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
- Timestamp:
- 03/11/04 18:27:42 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r3455 r3479 331 331 } 332 332 333 fCam->SetGeomCam(fGeom);334 fCam->SetBadPixelsCam(fBadPixels);335 336 333 fNumHiGainSamples = fSignals->GetNumUsedHiGainFADCSlices(); 337 334 fNumLoGainSamples = fSignals->GetNumUsedLoGainFADCSlices(); … … 437 434 } 438 435 439 pix.CheckChargeValidity (&bad);440 pix.CheckTimeValidity (&bad);436 pix.CheckChargeValidity (&bad); 437 pix.CheckTimeValidity (&bad); 441 438 442 if (bad.IsUnsuitable Run())439 if (bad.IsUnsuitable(MBadPixelsPix::kUnsuitableRun)) 443 440 continue; 444 441 445 442 nvalid++; 446 443 447 444 if (!pix.CalcReducedSigma()) 448 445 { 449 bad.SetUnsuitable Run();446 bad.SetUnsuitable(MBadPixelsPix::kUnsuitableRun); 450 447 continue; 451 448 } 452 449 453 pix.CalcFFactorMethod(); 454 } 455 450 if (!pix.CalcFFactorMethod()) 451 bad.SetUnsuitable(MBadPixelsPix::kUnsuitableRun); 452 453 } 454 456 455 457 456 … … 525 524 // F-Factor calibration 526 525 // 527 if (fCam->CalcMeanFluxPhotonsFFactorMethod( ))528 { 529 fCam->ApplyFFactorCalibration( );526 if (fCam->CalcMeanFluxPhotonsFFactorMethod(*fGeom, *fBadPixels)) 527 { 528 fCam->ApplyFFactorCalibration(*fGeom,*fBadPixels); 530 529 fCam->SetFFactorMethodValid(kTRUE); 531 530 } … … 536 535 } 537 536 538 539 540 537 // 541 538 // Blind Pixel calibration … … 558 555 { 559 556 fCam->SetBlindPixelMethodValid(kTRUE); 560 fCam->ApplyBlindPixelCalibration( );557 fCam->ApplyBlindPixelCalibration(*fGeom,*fBadPixels); 561 558 } 562 559 } … … 582 579 { 583 580 fCam->SetPINDiodeMethodValid(kTRUE); 584 fCam->ApplyPINDiodeCalibration( );581 fCam->ApplyPINDiodeCalibration(*fGeom,*fBadPixels); 585 582 } 586 583 }
Note:
See TracChangeset
for help on using the changeset viewer.