- Timestamp:
- 03/13/04 18:31:13 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3495 r3496 19 19 -*-*- END OF LINE -*-*- 20 20 2004/03/13: Markus Gaug 21 22 * mcalib/MCalibrationChargeCalc.cc 23 * mcalib/MCalibrationChargePix.[h,cc] 24 * mcalib/MCalibrationChargeCam.cc 25 * mcalib/MHCalibrationChargeCam.cc 26 * mcalib/MHCalibrationChargeLoGainPix.cc 27 - fixed Low Gain calibration 28 21 29 22 30 * mcalib/MHGausEvents.cc -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCalc.cc
r3479 r3496 444 444 if (!pix.CalcReducedSigma()) 445 445 { 446 *fLog << warn << GetDescriptor() 447 << ": Could not calculate reduced sigmas of pixel: " << pix.GetPixId() << endl; 446 448 bad.SetUnsuitable(MBadPixelsPix::kUnsuitableRun); 447 449 continue; … … 449 451 450 452 if (!pix.CalcFFactorMethod()) 451 bad.SetUnsuitable(MBadPixelsPix::kUnsuitableRun); 452 453 } 454 455 456 453 { 454 *fLog << warn << GetDescriptor() 455 << ": Could not calculate F-Factor of pixel: " << pix.GetPixId() << endl; 456 bad.SetUnsuitable(MBadPixelsPix::kUnsuitableRun); 457 } 458 } 459 457 460 // 458 461 // The Michele check ... -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc
r3494 r3496 737 737 Int_t validinner = 0; 738 738 Int_t validouter = 0; 739 740 739 741 740 TIter Next(fPixels); 742 741 MCalibrationChargePix *pix; … … 845 844 if(!bad[idx].IsCalibrationResultOK()) 846 845 continue; 847 846 848 847 const Float_t nphe = pix2->GetPheFFactorMethod(); 849 848 const Float_t npheerr = pix2->GetPheFFactorMethodErr(); … … 857 856 if (ratio == 1.) 858 857 { 859 858 860 859 if (nphe < lowerpheinnerlimit || nphe > upperpheinnerlimit) 861 860 { -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
r3479 r3496 414 414 } 415 415 416 Float_t MCalibrationChargePix::GetPedRms() const 417 { 418 return IsHiGainSaturation() ? fLoGainPedRms : fPedRms; 419 } 420 421 Float_t MCalibrationChargePix::GetPedRmsErr() const 422 { 423 return IsHiGainSaturation() ? fLoGainPedRmsErr : fPedErr/2.; 424 } 425 416 426 Float_t MCalibrationChargePix::GetMeanCharge() const 417 427 { … … 544 554 { 545 555 546 const Float_t loweredge = IsHiGainSaturation() ? fTimeFirstHiGain : fTimeFirstLoGain;547 const Float_t upperedge = IsHiGainSaturation() ? fTimeLastHiGain : fTimeLastLoGain;548 549 if ( fAbsTimeMean < loweredge+1.)556 const Byte_t loweredge = IsHiGainSaturation() ? fTimeFirstLoGain : fTimeFirstHiGain; 557 const Byte_t upperedge = IsHiGainSaturation() ? fTimeLastLoGain : fTimeLastHiGain; 558 559 if ( fAbsTimeMean < (Float_t)loweredge+1) 550 560 { 551 561 *fLog << warn << "WARNING: Mean ArrivalTime in first extraction bin of the Pixel " << fPixId << endl; 562 *fLog << fAbsTimeMean << " " << (Float_t)loweredge+1. << endl; 552 563 bad->SetMeanTimeInFirstBin(); 553 564 bad->SetUnsuitable(MBadPixelsPix::kUnsuitableRun); 554 565 } 555 566 556 if ( fAbsTimeMean > upperedge-1.)567 if ( fAbsTimeMean > (Float_t)upperedge-1) 557 568 { 558 569 *fLog << warn << "WARNING: Mean ArrivalTime in last extraction bin of the Pixel " << fPixId << endl; 570 *fLog << fAbsTimeMean << " " << (Float_t)upperedge-1. << endl; 559 571 bad->SetMeanTimeInLastBin(); 560 572 bad->SetUnsuitable(MBadPixelsPix::kUnsuitableRun); … … 617 629 if (IsHiGainSaturation()) 618 630 { 619 CalcLoGainPed(); 620 621 pedRmsSquare = fLoGainPedRms * fLoGainPedRms; 631 pedRmsSquare = fLoGainPedRms * fLoGainPedRms; 622 632 pedRmsSquareErrSquare = 4.* fLoGainPedRmsErr * fLoGainPedRmsErr * pedRmsSquare; 623 } /* if (HiGainSaturation) */633 } 624 634 else 625 635 { … … 715 725 fLoGainMeanChargeErr = TMath::Sqrt(chargeRelErrSquare + conversionRelErrSquare) * fLoGainMeanCharge; 716 726 717 fLoGainSigmaCharge *= fConversionHiLo;718 fLoGainSigmaChargeErr = TMath::Sqrt(sigmaRelErrSquare + conversionRelErrSquare) * fLoGainSigmaCharge;727 fLoGainSigmaCharge *= fConversionHiLo; 728 fLoGainSigmaChargeErr = TMath::Sqrt(sigmaRelErrSquare + conversionRelErrSquare) * fLoGainSigmaCharge; 719 729 720 730 fElectronicPedRms = gkElectronicPedRms * TMath::Sqrt(fNumLoGainSamples); 721 731 fElectronicPedRmsErr = gkElectronicPedRmsErr * TMath::Sqrt(fNumLoGainSamples); 722 723 } 724 732 733 CalcLoGainPed(); 734 735 } 736 737 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.h
r3455 r3496 248 248 Float_t GetPed() const { return fPed; } 249 249 Float_t GetPedErr() const { return fPedErr; } 250 Float_t GetPedRms() const { return fPedRms; }251 Float_t GetPedRmsErr() const { return fPedErr / 2.; }250 Float_t GetPedRms() const; 251 Float_t GetPedRmsErr() const; 252 252 253 253 Float_t GetTotalFFactorFFactorMethod() const { return fTotalFFactorFFactorMethod; } -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r3481 r3496 378 378 } 379 379 380 Int_t n = signal->GetSize(); 380 Int_t n = signal->GetSize(); 381 Int_t lofirst = signal->GetFirstUsedSliceLoGain(); 381 382 382 383 if (fHiGainArray->GetEntries() != n) … … 470 471 continue; 471 472 472 const Int_t timehi = (Int_t)pixel.GetIdxMaxHiGainSample();473 const Float_t timelo = (Float_t)pixel.GetIdxMaxLoGainSample( ) + 15.;473 const Float_t timehi = (Float_t)pixel.GetIdxMaxHiGainSample(); 474 const Float_t timelo = (Float_t)pixel.GetIdxMaxLoGainSample(lofirst); 474 475 475 476 (*this)[pixid].FillAbsTime(timehi); … … 626 627 { 627 628 628 629 629 if (hist.IsEmpty()) 630 630 { … … 633 633 return; 634 634 } 635 636 635 637 636 if (hist.GetSaturated() > fNumLoGainSaturationLimit*hist.GetHGausHist()->GetEntries()) … … 685 684 } 686 685 687 pix.SetLoGainNumPickup ( hist.GetPickup() 686 pix.SetLoGainNumPickup ( hist.GetPickup() ); 688 687 689 688 if (!hist.IsFourierSpectrumOK()) -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeLoGainPix.cc
r3358 r3496 53 53 const Axis_t MHCalibrationChargeLoGainPix::fgChargeLast = 199.5; 54 54 const Int_t MHCalibrationChargeLoGainPix::fgAbsTimeNbins = 15; 55 const Axis_t MHCalibrationChargeLoGainPix::fgAbsTimeFirst = 14.5;56 const Axis_t MHCalibrationChargeLoGainPix::fgAbsTimeLast = 29.5;55 const Axis_t MHCalibrationChargeLoGainPix::fgAbsTimeFirst = -0.5; 56 const Axis_t MHCalibrationChargeLoGainPix::fgAbsTimeLast = 14.5; 57 57 // -------------------------------------------------------------------------- 58 58 //
Note:
See TracChangeset
for help on using the changeset viewer.