Changeset 3551 for trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc
- Timestamp:
- 03/19/04 16:56:19 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationChargeCam.cc
r3511 r3551 62 62 // ============================================= 63 63 // 64 // 9: Number of Photo-electrons obtained with the F-Factor method64 // 9: Number of Photo-electrons obtained with the F-Factor method 65 65 // 10: Error on Number of Photo-electrons obtained with the F-Factor method 66 66 // 11: Mean conversion factor obtained with the F-Factor method … … 68 68 // 13: Overall F-Factor of the readout obtained with the F-Factor method 69 69 // 14: Error on Overall F-Factor of the readout obtained with the F-Factor method 70 // 15: Number of Photons inside Plexiglass obtained with the Blind Pixel method 71 // 16: Error on Number of Photons inside Plexiglass obtained with the Blind Pixel method 72 // 17: Mean conversion factor obtained with the Blind Pixel method 73 // 18: Error on the mean conversion factor obtained with the Blind Pixel method 74 // 19: Overall F-Factor of the readout obtained with the Blind Pixel method 75 // 20: Error on Overall F-Factor of the readout obtained with the Blind Pixel method 76 // 21: Number of Photons outside Plexiglass obtained with the PIN Diode method 77 // 22: Error on Number of Photons outside Plexiglass obtained with the PIN Diode method 78 // 23: Mean conversion factor obtained with the PIN Diode method 79 // 24: Error on the mean conversion factor obtained with the PIN Diode method 80 // 25: Overall F-Factor of the readout obtained with the PIN Diode method 81 // 26: Error on Overall F-Factor of the readout obtained with the PIN Diode method 70 // 15: Pixels with valid calibration by the F-Factor-Method 71 // 16: Mean conversion factor obtained with the Blind Pixel method 72 // 17: Error on the mean conversion factor obtained with the Blind Pixel method 73 // 18: Overall F-Factor of the readout obtained with the Blind Pixel method 74 // 19: Error on Overall F-Factor of the readout obtained with the Blind Pixel method 75 // 20: Pixels with valid calibration by the Blind Pixel-Method 76 // 21: Mean conversion factor obtained with the PIN Diode method 77 // 22: Error on the mean conversion factor obtained with the PIN Diode method 78 // 23: Overall F-Factor of the readout obtained with the PIN Diode method 79 // 24: Error on Overall F-Factor of the readout obtained with the PIN Diode method 80 // 25: Pixels with valid calibration by the PIN Diode-Method 82 81 // 83 82 // Localized defects: 84 83 // ================== 85 84 // 86 // 2 7: Excluded Pixels87 // 2 8: Pixels where the fit did not succeed --> results obtained only from the histograms88 // 2 9: Number of probable pickup events in the Hi Gain89 // 30: Number of probable pickup events in the Lo Gain85 // 26: Excluded Pixels 86 // 27: Pixels where the fit did not succeed --> results obtained only from the histograms 87 // 28: Number of probable pickup events in the Hi Gain 88 // 29: Number of probable pickup events in the Lo Gain 90 89 // 91 90 // Other classifications of pixels: 92 91 // ================================ 93 92 // 94 // 31: Pixels with saturated Hi-Gain 95 // 96 // Classification of validity of the calibrations: 97 // =============================================== 98 // 99 // 32: Pixels with valid calibration by the F-Factor-Method 100 // 33: Pixels with valid calibration by the Blind Pixel-Method 101 // 34: Pixels with valid calibration by the PIN Diode-Method 93 // 30: Pixels with saturated Hi-Gain 102 94 // 103 95 // Used Pedestals: 104 96 // =============== 105 97 // 106 // 3 5: Mean Pedestal over the entire range of signal extraction107 // 3 6: Error on the Mean Pedestal over the entire range of signal extraction108 // 3 7: Pedestal RMS over the entire range of signal extraction109 // 3 8: Error on the Pedestal RMS over the entire range of signal extraction98 // 31: Mean Pedestal over the entire range of signal extraction 99 // 32: Error on the Mean Pedestal over the entire range of signal extraction 100 // 33: Pedestal RMS over the entire range of signal extraction 101 // 34: Error on the Pedestal RMS over the entire range of signal extraction 110 102 // 111 103 // Calculated absolute arrival times (very low precision!): 112 104 // ======================================================== 113 105 // 114 // 3 9: Absolute Arrival time of the signal115 // 40: RMS of the Absolute Arrival time of the signal106 // 35: Absolute Arrival time of the signal 107 // 36: RMS of the Absolute Arrival time of the signal 116 108 // 117 109 ///////////////////////////////////////////////////////////////////////////// … … 422 414 // 8: Error of Reduced Sigma per Charge 423 415 // 416 // Useful variables derived from the fit results: 417 // ============================================= 418 // 419 // 4: Returned probability of Gauss fit to Charge distribution 420 // 5: Reduced Sigma of fitted Charge --> sqrt(sigma_Q^2 - PedRMS^2) 421 // 6: Error Reduced Sigma of fitted Charge 422 // 7: Reduced Sigma per Charge 423 // 8: Error of Reduced Sigma per Charge 424 // 424 425 // Results of the different calibration methods: 425 426 // ============================================= 426 427 // 427 // 9: Number of Photo-electrons obtained with the F-Factor method428 // 9: Number of Photo-electrons obtained with the F-Factor method 428 429 // 10: Error on Number of Photo-electrons obtained with the F-Factor method 429 430 // 11: Mean conversion factor obtained with the F-Factor method … … 431 432 // 13: Overall F-Factor of the readout obtained with the F-Factor method 432 433 // 14: Error on Overall F-Factor of the readout obtained with the F-Factor method 433 // 15: Number of Photons inside Plexiglass obtained with the Blind Pixel method 434 // 16: Error on Number of Photons inside Plexiglass obtained with the Blind Pixel method 435 // 17: Mean conversion factor obtained with the Blind Pixel method 436 // 18: Error on the mean conversion factor obtained with the Blind Pixel method 437 // 19: Overall F-Factor of the readout obtained with the Blind Pixel method 438 // 20: Error on Overall F-Factor of the readout obtained with the Blind Pixel method 439 // 21: Number of Photons outside Plexiglass obtained with the PIN Diode method 440 // 22: Error on Number of Photons outside Plexiglass obtained with the PIN Diode method 441 // 23: Mean conversion factor obtained with the PIN Diode method 442 // 24: Error on the mean conversion factor obtained with the PIN Diode method 443 // 25: Overall F-Factor of the readout obtained with the PIN Diode method 444 // 26: Error on Overall F-Factor of the readout obtained with the PIN Diode method 434 // 15: Pixels with valid calibration by the F-Factor-Method 435 // 16: Mean conversion factor obtained with the Blind Pixel method 436 // 17: Error on the mean conversion factor obtained with the Blind Pixel method 437 // 18: Overall F-Factor of the readout obtained with the Blind Pixel method 438 // 19: Error on Overall F-Factor of the readout obtained with the Blind Pixel method 439 // 20: Pixels with valid calibration by the Blind Pixel-Method 440 // 21: Mean conversion factor obtained with the PIN Diode method 441 // 22: Error on the mean conversion factor obtained with the PIN Diode method 442 // 23: Overall F-Factor of the readout obtained with the PIN Diode method 443 // 24: Error on Overall F-Factor of the readout obtained with the PIN Diode method 444 // 25: Pixels with valid calibration by the PIN Diode-Method 445 445 // 446 446 // Localized defects: 447 447 // ================== 448 448 // 449 // 2 7: Excluded Pixels450 // 2 8: Pixels where the fit did not succeed --> results obtained only from the histograms451 // 2 9: Number of probable pickup events in the Hi Gain452 // 30: Number of probable pickup events in the Lo Gain449 // 26: Excluded Pixels 450 // 27: Pixels where the fit did not succeed --> results obtained only from the histograms 451 // 28: Number of probable pickup events in the Hi Gain 452 // 29: Number of probable pickup events in the Lo Gain 453 453 // 454 454 // Other classifications of pixels: 455 455 // ================================ 456 456 // 457 // 31: Pixels with saturated Hi-Gain 458 // 459 // Classification of validity of the calibrations: 460 // =============================================== 461 // 462 // 32: Pixels with valid calibration by the F-Factor-Method 463 // 33: Pixels with valid calibration by the Blind Pixel-Method 464 // 34: Pixels with valid calibration by the PIN Diode-Method 457 // 30: Pixels with saturated Hi-Gain 465 458 // 466 459 // Used Pedestals: 467 460 // =============== 468 461 // 469 // 3 5: Mean Pedestal over the entire range of signal extraction470 // 3 6: Error on the Mean Pedestal over the entire range of signal extraction471 // 3 7: Pedestal RMS over the entire range of signal extraction472 // 3 8: Error on the Pedestal RMS over the entire range of signal extraction462 // 31: Mean Pedestal over the entire range of signal extraction 463 // 32: Error on the Mean Pedestal over the entire range of signal extraction 464 // 33: Pedestal RMS over the entire range of signal extraction 465 // 34: Error on the Pedestal RMS over the entire range of signal extraction 473 466 // 474 467 // Calculated absolute arrival times (very low precision!): 475 468 // ======================================================== 476 469 // 477 // 3 9: Absolute Arrival time of the signal478 // 40: RMS of the Absolute Arrival time of the signal470 // 35: Absolute Arrival time of the signal 471 // 36: RMS of the Absolute Arrival time of the signal 479 472 // 480 473 Bool_t MCalibrationChargeCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const … … 592 585 break; 593 586 case 15: 594 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsBlindPixelMethodValid()) 595 return kFALSE; 596 // val = fBlindPixel->GetMeanFluxInsidePlexiglass()*area; 597 val = 1.; 587 if ((*this)[idx].IsExcluded()) 588 return kFALSE; 589 if ((*this)[idx].IsFFactorMethodValid()) 590 val = 1; 591 else 592 return kFALSE; 598 593 break; 599 594 case 16: 600 595 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsBlindPixelMethodValid()) 601 596 return kFALSE; 602 // val = fBlindPixel->GetMeanFluxErrInsidePlexiglass()*area; 603 val = 1.; 597 val = (*this)[idx].GetMeanConversionBlindPixelMethod(); 604 598 break; 605 599 case 17: 606 600 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsBlindPixelMethodValid()) 607 601 return kFALSE; 608 val = (*this)[idx].Get MeanConversionBlindPixelMethod();602 val = (*this)[idx].GetConversionBlindPixelMethodErr(); 609 603 break; 610 604 case 18: 611 605 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsBlindPixelMethodValid()) 612 606 return kFALSE; 613 val = (*this)[idx].Get ConversionBlindPixelMethodErr();607 val = (*this)[idx].GetTotalFFactorBlindPixelMethod(); 614 608 break; 615 609 case 19: 616 610 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsBlindPixelMethodValid()) 617 611 return kFALSE; 618 val = (*this)[idx].GetTotalFFactorBlindPixelMethod ();612 val = (*this)[idx].GetTotalFFactorBlindPixelMethodErr(); 619 613 break; 620 614 case 20: 621 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsBlindPixelMethodValid()) 622 return kFALSE; 623 val = (*this)[idx].GetTotalFFactorBlindPixelMethodErr(); 615 if ((*this)[idx].IsExcluded()) 616 return kFALSE; 617 if ((*this)[idx].IsBlindPixelMethodValid()) 618 val = 1; 619 else 620 return kFALSE; 624 621 break; 625 622 case 21: 626 623 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsPINDiodeMethodValid()) 627 624 return kFALSE; 628 // val = fPINDiode->GetMeanFluxOutsidePlexiglass()*area; 629 val = 1.; 625 val = (*this)[idx].GetMeanConversionPINDiodeMethod(); 630 626 break; 631 627 case 22: 632 628 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsPINDiodeMethodValid()) 633 629 return kFALSE; 634 // val = fPINDiode->GetMeanFluxErrOutsidePlexiglass()*area; 635 val = 1.; 630 val = (*this)[idx].GetConversionPINDiodeMethodErr(); 636 631 break; 637 632 case 23: 638 633 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsPINDiodeMethodValid()) 639 634 return kFALSE; 640 val = (*this)[idx].Get MeanConversionPINDiodeMethod();635 val = (*this)[idx].GetTotalFFactorPINDiodeMethod(); 641 636 break; 642 637 case 24: 643 638 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsPINDiodeMethodValid()) 644 639 return kFALSE; 645 val = (*this)[idx].Get ConversionPINDiodeMethodErr();640 val = (*this)[idx].GetTotalFFactorPINDiodeMethodErr(); 646 641 break; 647 642 case 25: 648 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsPINDiodeMethodValid()) 649 return kFALSE; 650 val = (*this)[idx].GetTotalFFactorPINDiodeMethod(); 643 if ((*this)[idx].IsExcluded()) 644 return kFALSE; 645 if ((*this)[idx].IsPINDiodeMethodValid()) 646 val = 1; 647 else 648 return kFALSE; 651 649 break; 652 650 case 26: 653 if ((*this)[idx].IsExcluded() || !(*this)[idx].IsPINDiodeMethodValid())654 return kFALSE;655 val = (*this)[idx].GetTotalFFactorPINDiodeMethodErr();656 break;657 case 27:658 651 if ((*this)[idx].IsExcluded()) 659 652 val = 1.; … … 661 654 return kFALSE; 662 655 break; 663 case 2 8:656 case 27: 664 657 if ((*this)[idx].IsExcluded()) 665 658 return kFALSE; … … 669 662 return kFALSE; 670 663 break; 664 case 28: 665 if ((*this)[idx].IsExcluded()) 666 return kFALSE; 667 val = (*this)[idx].GetHiGainNumPickup(); 668 break; 671 669 case 29: 672 670 if ((*this)[idx].IsExcluded()) 673 671 return kFALSE; 674 val = (*this)[idx].Get HiGainNumPickup();672 val = (*this)[idx].GetLoGainNumPickup(); 675 673 break; 676 674 case 30: 677 675 if ((*this)[idx].IsExcluded()) 678 676 return kFALSE; 679 val = (*this)[idx]. GetLoGainNumPickup();677 val = (*this)[idx].IsHiGainSaturation(); 680 678 break; 681 679 case 31: 682 680 if ((*this)[idx].IsExcluded()) 683 681 return kFALSE; 684 val = (*this)[idx]. IsHiGainSaturation();682 val = (*this)[idx].GetPed(); 685 683 break; 686 684 case 32: 687 685 if ((*this)[idx].IsExcluded()) 688 686 return kFALSE; 689 if ((*this)[idx].IsFFactorMethodValid()) 690 val = 1; 691 else 692 return kFALSE; 687 val = (*this)[idx].GetPedErr(); 693 688 break; 694 689 case 33: 695 690 if ((*this)[idx].IsExcluded()) 696 691 return kFALSE; 697 if ((*this)[idx].IsBlindPixelMethodValid()) 698 val = 1; 699 else 700 return kFALSE; 692 val = (*this)[idx].GetPedRms(); 701 693 break; 702 694 case 34: 703 695 if ((*this)[idx].IsExcluded()) 704 696 return kFALSE; 705 if ((*this)[idx].IsPINDiodeMethodValid()) 706 val = 1; 707 else 708 return kFALSE; 697 val = (*this)[idx].GetPedErr()/2.; 709 698 break; 710 699 case 35: 711 700 if ((*this)[idx].IsExcluded()) 712 701 return kFALSE; 713 val = (*this)[idx].Get Ped();702 val = (*this)[idx].GetAbsTimeMean(); 714 703 break; 715 704 case 36: 716 if ((*this)[idx].IsExcluded())717 return kFALSE;718 val = (*this)[idx].GetPedErr();719 break;720 case 37:721 if ((*this)[idx].IsExcluded())722 return kFALSE;723 val = (*this)[idx].GetPedRms();724 break;725 case 38:726 if ((*this)[idx].IsExcluded())727 return kFALSE;728 val = (*this)[idx].GetPedErr()/2.;729 break;730 case 39:731 if ((*this)[idx].IsExcluded())732 return kFALSE;733 val = (*this)[idx].GetAbsTimeMean();734 break;735 case 40:736 705 if ((*this)[idx].IsExcluded()) 737 706 return kFALSE;
Note:
See TracChangeset
for help on using the changeset viewer.