- Timestamp:
- 01/10/05 17:29:37 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5768 r5773 41 41 * msignal/MExtractor.h 42 42 - added Getter for fOffsetLoGain (was still missing) 43 44 * mhcalib/MHCalibrationChargeCam.[h,cc] 45 - remove pixels with histogram overflow only if their percentage 46 passes a certain limit (default: 0.5%). Before, every overflow 47 lead to an unsuitable pixel. 43 48 44 49 -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.cc
r5741 r5773 172 172 const Float_t MHCalibrationChargeCam::fgNumHiGainSaturationLimit = 0.01; 173 173 const Float_t MHCalibrationChargeCam::fgNumLoGainSaturationLimit = 0.005; 174 const Float_t MHCalibrationChargeCam::fgNumOverflowLimit = 0.005; 174 175 const Float_t MHCalibrationChargeCam::fgTimeLowerLimit = 1.; 175 176 const Float_t MHCalibrationChargeCam::fgTimeUpperLimit = 2.; … … 219 220 SetNumHiGainSaturationLimit(fgNumHiGainSaturationLimit); 220 221 SetNumLoGainSaturationLimit(fgNumLoGainSaturationLimit); 222 SetNumOverflowLimit(fgNumOverflowLimit); 223 221 224 SetTimeLowerLimit(); 222 225 SetTimeUpperLimit(); … … 925 928 926 929 Stat_t overflow = h->GetBinContent(h->GetNbinsX()+1); 927 if (overflow > 0.1)930 if (overflow > fNumOverflowLimit*histhi.GetHGausHist()->GetEntries()) 928 931 { 929 932 *fLog << warn 930 933 << "HiGain Hist-overflow " << overflow 931 << " times in pix: " << i<< " (w/o saturation!) " << endl;934 << " times in: " << histhi.GetName() << " (w/o saturation!) " << endl; 932 935 bad.SetUncalibrated( MBadPixelsPix::kHiGainOverFlow ); 933 936 } 934 937 935 938 overflow = h->GetBinContent(0); 936 if (overflow > 0.1)939 if (overflow > fNumOverflowLimit*histhi.GetHGausHist()->GetEntries()) 937 940 { 938 941 *fLog << warn 939 942 << "HiGain Hist-underflow " << overflow 940 << " times in pix: " << i<< " (w/o saturation!) " << endl;943 << " times in pix: " << histhi.GetName() << " (w/o saturation!) " << endl; 941 944 bad.SetUncalibrated( MBadPixelsPix::kHiGainOverFlow ); 942 945 } … … 967 970 968 971 Stat_t overflow = h->GetBinContent(h->GetNbinsX()+1); 969 if (overflow > 0.1)972 if (overflow > fNumOverflowLimit*histlo.GetHGausHist()->GetEntries()) 970 973 { 971 974 *fLog << warn 972 975 << "LoGain Hist-overflow " << overflow 973 << " times in pix: " << i<< " (w/o saturation!) " << endl;976 << " times in: " << histlo.GetName() << " (w/o saturation!) " << endl; 974 977 bad.SetUncalibrated( MBadPixelsPix::kLoGainOverFlow ); 975 978 } 976 979 977 980 overflow = h->GetBinContent(0); 978 if (overflow > 0.1)981 if (overflow > fNumOverflowLimit*histlo.GetHGausHist()->GetEntries()) 979 982 { 980 983 *fLog << warn 981 984 << "LoGain Hist-underflow " << overflow 982 << " times in pix: " << i<< " (w/o saturation!) " << endl;985 << " times in: " << histlo.GetName() << " (w/o saturation!) " << endl; 983 986 bad.SetUncalibrated( MBadPixelsPix::kLoGainOverFlow ); 984 987 } -
trunk/MagicSoft/Mars/mhcalib/MHCalibrationChargeCam.h
r5686 r5773 44 44 static const Float_t fgNumHiGainSaturationLimit; //! The default for fNumHiGainSaturationLimit (now at: 0.01) 45 45 static const Float_t fgNumLoGainSaturationLimit; //! The default for fNumLoGainSaturationLimit (now at: 0.005) 46 static const Float_t fgNumOverflowLimit; //! The default for fNumOverflowLimit (now at: 0.005) 47 46 48 static const Float_t fgTimeLowerLimit; //! Default for fTimeLowerLimit (now set to: 1.) 47 49 static const Float_t fgTimeUpperLimit; //! Default for fTimeUpperLimit (now set to: 2.) … … 56 58 Axis_t fLoGainLast; // Upper histogram limit low gain 57 59 60 Float_t fNumOverflowLimit; // Part of maximum allowed overflow events 61 58 62 TString fAbsHistName; // Histogram names abs.times 59 63 TString fAbsHistTitle; // Histogram titles abs. times … … 113 117 void SetLoGainLast ( const Axis_t f ) { fLoGainLast = f; } 114 118 119 void SetNumOverflowLimit ( const Float_t f=fgNumOverflowLimit ) { fNumOverflowLimit = f; } 120 115 121 void SetTimeLowerLimit ( const Float_t f=fgTimeLowerLimit ) { fTimeLowerLimit = f; } 116 122 void SetTimeUpperLimit ( const Float_t f=fgTimeUpperLimit ) { fTimeUpperLimit = f; }
Note:
See TracChangeset
for help on using the changeset viewer.