- Timestamp:
- 02/12/04 12:44:04 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3115 r3116 11 11 * mcalib/MHGausEvent.cc: 12 12 - corrected call to StripZeros 13 14 * mcalib/MCalibrationPix.[h,cc] 15 - implemented dummy for combined method 16 17 * mcalib/MCalibrate.[h,cc] 18 - implemented a dummy for calibration factor 1. 19 (requested by Javier Rico) 20 - implemented combined method 21 - check for valid methods moved to ReInit 22 23 * mcalib/MCalibrationCalc.cc 24 - removed initialization of non-used nsamples 13 25 14 26 -
trunk/MagicSoft/Mars/mcalib/MCalibrate.cc
r3065 r3116 135 135 } 136 136 137 switch(fCalibrationMode) 138 { 139 case kBlindPixel: 140 break; 141 case kFfactor: 142 break; 143 case kPinDiode: 144 *fLog << err << GetDescriptor() 145 << ": PIN Diode Calibration mode not yet available " << endl; 146 return kFALSE; 147 break; 148 case kCombined: 149 *fLog << err << GetDescriptor() 150 << ": Combined Calibration mode not yet available " << endl; 151 return kFALSE; 152 break; 153 case kDummy: 154 *fLog << warn << GetDescriptor() 155 << ": WARNING: Dummy calibration, no calibration applied!!" << endl; 156 break; 157 default: 158 *fLog << warn << GetDescriptor() 159 << ": WARNING: Calibration mode value (" 160 <<fCalibrationMode<<") not known" << endl; 161 return kFALSE; 162 } 163 137 164 return kTRUE; 138 165 } … … 181 208 calibrationConversionFactorError = pix.GetErrorConversionBlindPixelMethod(); 182 209 break; 210 case kPinDiode: 211 calibrationConversionFactor = pix.GetMeanConversionPINDiodeMethod(); 212 calibrationConversionFactorError = pix.GetErrorConversionPINDiodeMethod(); 213 break; 183 214 case kFfactor: 184 215 calibrationConversionFactor = pix.GetMeanConversionFFactorMethod(); 185 216 calibrationConversionFactorError = pix.GetErrorConversionFFactorMethod(); 186 217 break; 187 default: 188 *fLog << warn << "MCalibrate::Process Warning: Calibration mode value ("<<fCalibrationMode<<") not known" << endl; 189 break; 218 case kCombined: 219 calibrationConversionFactor = pix.GetMeanConversionCombinedMethod(); 220 calibrationConversionFactorError = pix.GetErrorConversionCombinedMethod(); 221 break; 222 case kDummy: 223 calibrationConversionFactor = 1.; 224 calibrationConversionFactorError = 0.; 225 break; 190 226 } 191 227 } -
trunk/MagicSoft/Mars/mcalib/MCalibrationCalc.cc
r3108 r3116 527 527 blindpixel.FillGraphs(blindpixelsumhi,blindpixelsumlo); 528 528 529 #if 0530 529 TH1I *hist = blindpixel.GetSinglePheFADCSlices(); 531 530 532 if (blindpixelsumhi > 300.)531 if (blindpixelsumhi > 50.) 533 532 { 534 533 ptr = pixel.GetHiGainSamples(); … … 539 538 hist->Fill(i,*ptr++); 540 539 } 541 #endif542 540 } /* if use blind pixel */ 543 541 … … 786 784 Byte_t *start = ptr + fBlindPixelFirst-1; 787 785 Byte_t *end = ptr + fBlindPixelLast; 788 Byte_t nsamples = fBlindPixelLast-fgBlindPixelFirst+1;789 786 790 787 Byte_t sum = 0;
Note:
See TracChangeset
for help on using the changeset viewer.