Changeset 3560
- Timestamp:
- 03/19/04 23:02:47 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3558 r3560 47 47 - added MCalibrationQECam 48 48 - cleaned the code up a little 49 - give more information at the end 49 50 50 51 * mcalib/MCalibrationChargePix.[h,cc] … … 60 61 - remove warning about pixel with low gain saturation, 61 62 now in MBadPixelsPix 63 64 * mbadpixels/MBadPixelsPix.[h,cc] 65 * mcalib/MCalibrationChargeCam.cc 66 - added new flag: kDeviatingNumPhes 67 68 * mcalib/MCalibrationChargePix.cc 69 - check for mean arr. time in last bin replaced by check in last two bins 70 71 * mcalib/MCalibrationChargePix.[h,cc] 72 * mcalib/MCalibrationChargeCam.cc 73 - removed flag kHiGainFitted, kLoGainFitted, since they are available 74 from MBadPixelsPix 62 75 63 76 -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc
r3559 r3560 83 83 // 84 84 // 26: Excluded Pixels 85 // 27: Pixels where the fit did not succeed --> results obtained only from the histograms 86 // 28: Number of probable pickup events in the Hi Gain 87 // 29: Number of probable pickup events in the Lo Gain 85 // 27: Number of probable pickup events in the Hi Gain 86 // 28: Number of probable pickup events in the Lo Gain 88 87 // 89 88 // Other classifications of pixels: 90 89 // ================================ 91 90 // 92 // 30: Pixels with saturated Hi-Gain91 // 29: Pixels with saturated Hi-Gain 93 92 // 94 93 // Used Pedestals: 95 94 // =============== 96 95 // 97 // 3 1: Mean Pedestal over the entire range of signal extraction98 // 3 2: Error on the Mean Pedestal over the entire range of signal extraction99 // 3 3: Pedestal RMS over the entire range of signal extraction100 // 3 4: Error on the Pedestal RMS over the entire range of signal extraction96 // 30: Mean Pedestal over the entire range of signal extraction 97 // 31: Error on the Mean Pedestal over the entire range of signal extraction 98 // 32: Pedestal RMS over the entire range of signal extraction 99 // 33: Error on the Pedestal RMS over the entire range of signal extraction 101 100 // 102 101 // Calculated absolute arrival times (very low precision!): 103 102 // ======================================================== 104 103 // 105 // 3 5: Absolute Arrival time of the signal106 // 3 6: RMS of the Absolute Arrival time of the signal104 // 34: Absolute Arrival time of the signal 105 // 35: RMS of the Absolute Arrival time of the signal 107 106 // 108 107 ///////////////////////////////////////////////////////////////////////////// … … 447 446 // 448 447 // 26: Excluded Pixels 449 // 27: Pixels where the fit did not succeed --> results obtained only from the histograms 450 // 28: Number of probable pickup events in the Hi Gain 451 // 29: Number of probable pickup events in the Lo Gain 448 // 27: Number of probable pickup events in the Hi Gain 449 // 28: Number of probable pickup events in the Lo Gain 452 450 // 453 451 // Other classifications of pixels: 454 452 // ================================ 455 453 // 456 // 30: Pixels with saturated Hi-Gain454 // 29: Pixels with saturated Hi-Gain 457 455 // 458 456 // Used Pedestals: 459 457 // =============== 460 458 // 461 // 3 1: Mean Pedestal over the entire range of signal extraction462 // 3 2: Error on the Mean Pedestal over the entire range of signal extraction463 // 3 3: Pedestal RMS over the entire range of signal extraction464 // 3 4: Error on the Pedestal RMS over the entire range of signal extraction459 // 30: Mean Pedestal over the entire range of signal extraction 460 // 31: Error on the Mean Pedestal over the entire range of signal extraction 461 // 32: Pedestal RMS over the entire range of signal extraction 462 // 33: Error on the Pedestal RMS over the entire range of signal extraction 465 463 // 466 464 // Calculated absolute arrival times (very low precision!): 467 465 // ======================================================== 468 466 // 469 // 3 5: Absolute Arrival time of the signal470 // 3 6: RMS of the Absolute Arrival time of the signal467 // 34: Absolute Arrival time of the signal 468 // 35: RMS of the Absolute Arrival time of the signal 471 469 // 472 470 Bool_t MCalibrationChargeCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const … … 656 654 if ((*this)[idx].IsExcluded()) 657 655 return kFALSE; 658 if (!(*this)[idx].IsFitted()) 659 val = 1; 660 else 661 return kFALSE; 656 val = (*this)[idx].GetHiGainNumPickup(); 662 657 break; 663 658 case 28: 664 659 if ((*this)[idx].IsExcluded()) 665 660 return kFALSE; 666 val = (*this)[idx].Get HiGainNumPickup();661 val = (*this)[idx].GetLoGainNumPickup(); 667 662 break; 668 663 case 29: 669 664 if ((*this)[idx].IsExcluded()) 670 665 return kFALSE; 671 val = (*this)[idx]. GetLoGainNumPickup();666 val = (*this)[idx].IsHiGainSaturation(); 672 667 break; 673 668 case 30: 674 669 if ((*this)[idx].IsExcluded()) 675 670 return kFALSE; 676 val = (*this)[idx]. IsHiGainSaturation();671 val = (*this)[idx].GetPed(); 677 672 break; 678 673 case 31: 679 674 if ((*this)[idx].IsExcluded()) 680 675 return kFALSE; 681 val = (*this)[idx].GetPed ();676 val = (*this)[idx].GetPedErr(); 682 677 break; 683 678 case 32: 684 679 if ((*this)[idx].IsExcluded()) 685 680 return kFALSE; 686 val = (*this)[idx].GetPed Err();681 val = (*this)[idx].GetPedRms(); 687 682 break; 688 683 case 33: 689 684 if ((*this)[idx].IsExcluded()) 690 685 return kFALSE; 691 val = (*this)[idx].GetPed Rms();686 val = (*this)[idx].GetPedErr()/2.; 692 687 break; 693 688 case 34: 694 689 if ((*this)[idx].IsExcluded()) 695 690 return kFALSE; 696 val = (*this)[idx].Get PedErr()/2.;691 val = (*this)[idx].GetAbsTimeMean(); 697 692 break; 698 693 case 35: 699 if ((*this)[idx].IsExcluded())700 return kFALSE;701 val = (*this)[idx].GetAbsTimeMean();702 break;703 case 36:704 694 if ((*this)[idx].IsExcluded()) 705 695 return kFALSE; -
trunk/MagicSoft/Mars/mcalib/MCalibrationChargePix.cc
r3559 r3560 151 151 SetHiGainSaturation ( kFALSE ); 152 152 SetLoGainSaturation ( kFALSE ); 153 SetHiGainFitted ( kFALSE );154 SetLoGainFitted ( kFALSE );155 153 SetExcluded ( kFALSE ); 156 154 SetBlindPixelMethodValid ( kFALSE ); … … 338 336 } 339 337 340 // --------------------------------------------------------------------------341 //342 // Set the Fitted Bit from outside343 //344 void MCalibrationChargePix::SetHiGainFitted(Bool_t b )345 {346 b ? SETBIT(fFlags, kHiGainFitted) : CLRBIT(fFlags, kHiGainFitted);347 }348 349 // --------------------------------------------------------------------------350 //351 // Set the Fitted Bit from outside352 //353 void MCalibrationChargePix::SetLoGainFitted(const Bool_t b )354 {355 b ? SETBIT(fFlags, kLoGainFitted) : CLRBIT(fFlags, kLoGainFitted);356 }357 338 358 339 // -------------------------------------------------------------------------- … … 578 559 return -1.; 579 560 return TMath::Sqrt(fTotalFFactorFFactorMethodVar); 580 }581 582 Bool_t MCalibrationChargePix::IsFitted() const583 {584 return IsHiGainSaturation() ? IsLoGainFitted() : IsHiGainFitted();585 561 } 586 562 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargeCam.cc
r3551 r3560 590 590 // 2) Fit the Hi Gain histograms with a Gaussian 591 591 // 592 pix.SetHiGainFitted();593 592 if (!hist.FitGaus()) 594 593 // … … 596 595 // 597 596 if (!hist.RepeatFit()) 598 { 599 hist.BypassFit(); 600 pix.SetHiGainFitted(kFALSE); 601 bad.SetHiGainNotFitted(); 602 bad.SetUnsuitable(MBadPixelsPix::kUnreliableRun); 603 } 604 else 605 pix.SetHiGainFitted(); 597 { 598 hist.BypassFit(); 599 bad.SetHiGainNotFitted(); 600 bad.SetUnsuitable(MBadPixelsPix::kUnreliableRun); 601 } 606 602 607 603 // … … 660 656 // 2) Fit the Lo Gain histograms with a Gaussian 661 657 // 662 pix.SetLoGainFitted();663 658 if (!hist.FitGaus()) 664 659 // … … 668 663 { 669 664 hist.BypassFit(); 670 pix.SetLoGainFitted(kFALSE);671 665 bad.SetLoGainNotFitted(); 672 666 if (pix.IsHiGainSaturation()) 673 667 bad.SetUnsuitable(MBadPixelsPix::kUnreliableRun); 674 668 } 675 669
Note:
See TracChangeset
for help on using the changeset viewer.