Changeset 3012 for trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc
- Timestamp:
- 02/03/04 20:14:48 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MCalibrationPix.cc
r3007 r3012 129 129 fTimeLastLoGain = 0 ; 130 130 131 fAbsTimeMean = -1.; 132 fAbsTimeRms = -1.; 133 131 134 fPheFFactorMethod = -1.; 132 135 fPheFFactorMethodError = -1.; … … 666 669 } 667 670 668 Float_t first;669 Float_t last;670 671 671 if (TESTBIT(fFlags,kHiGainSaturation)) 672 672 { 673 first = (Float_t)fHist->GetAbsTimeFirstLoGain(); 674 last = (Float_t)fHist->GetAbsTimeLastLoGain(); 675 676 if (first < (Float_t)fTimeFirstLoGain+1) 673 674 if (fAbsTimeMean < (Float_t)fTimeFirstLoGain+1) 677 675 { 678 676 *fLog << warn 679 677 << "WARNING: Some absolute times smaller than limit in Pixel " 680 << fPixId << " time: " << first << " Limit: " << fTimeFirstLoGain+1 << endl; 678 << fPixId << " time: " << fAbsTimeMean 679 << " Limit: " << (Float_t)fTimeFirstLoGain+1. << endl; 681 680 return kFALSE; 682 681 } 683 682 684 if ( (Float_t)fTimeLastLoGain-1 > last)683 if (fAbsTimeMean > (Float_t)fTimeLastLoGain-1) 685 684 { 686 685 *fLog << warn 687 686 << "WARNING: Some absolute times bigger than limit in Pixel " 688 << fPixId << " time: " << last << " Limit: " << fTimeLastLoGain-1 << endl; 687 << fPixId << " time: " << fAbsTimeMean 688 << " Limit: " << (Float_t)fTimeLastLoGain-1. << endl; 689 689 return kFALSE; 690 690 } … … 693 693 else 694 694 { 695 first = (Float_t)fHist->GetAbsTimeFirstHiGain(); 696 last = (Float_t)fHist->GetAbsTimeLastHiGain(); 697 698 if (first > ((Float_t)fTimeFirstHiGain+1.)) 695 696 if (fAbsTimeMean < (Float_t)fTimeFirstHiGain+1.) 699 697 { 700 698 *fLog << warn 701 699 << "WARNING: Some absolute times smaller than limit in Pixel " 702 << fPixId << " time: " << first << " Limit: " << (Float_t)fTimeFirstHiGain+1. << endl; 700 << fPixId << " time: " << fAbsTimeMean 701 << " Limit: " << (Float_t)fTimeFirstHiGain+1. << endl; 703 702 // return kFALSE; 704 703 } 705 704 706 if ( ((Float_t)fTimeLastHiGain-1.) > last)705 if (fAbsTimeMean > (Float_t)fTimeLastHiGain-1.) 707 706 { 708 707 *fLog << warn 709 708 << "WARNING: Some absolute times bigger than limit in Pixel " 710 << fPixId << " time: " << last << " Limit: " << (Float_t)fTimeLastHiGain-1. << endl; 709 << fPixId << " time: " << fAbsTimeMean 710 << " Limit: " << (Float_t)fTimeLastHiGain-1. << endl; 711 711 // return kFALSE; 712 712 } … … 766 766 { 767 767 768 768 769 if(!fHist->FitTime()) 769 770 { … … 777 778 fTimeProb = fHist->GetRelTimeProb(); 778 779 780 fAbsTimeMean = fHist->GetAbsTimeMean(); 781 fAbsTimeMeanErr = fHist->GetAbsTimeMeanErr(); 782 fAbsTimeRms = fHist->GetAbsTimeRms(); 783 779 784 if (CheckTimeFitValidity()) 780 785 SETBIT(fFlags,kTimeFitValid);
Note:
See TracChangeset
for help on using the changeset viewer.