Changeset 5927 for trunk/MagicSoft/Mars
- Timestamp:
- 01/21/05 13:13:56 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5924 r5927 20 20 21 21 -*-*- END OF LINE -*-*- 22 23 2005/01/21 Markus Gaug 24 25 * msignal/MExtractTimeAndChargeDigitalFilter.cc 26 - use the max. bin content for low-gain extraction 22 27 23 28 2005/01/21 Florian Goebel -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5918 r5927 186 186 Byte_t sathi=0; 187 187 188 fMaxBinContent = 0; 188 // Initialize fMaxBinContent for the case, it gets not set by the derived class 189 fMaxBinContent = fMaxBinContentLimit + 1; 189 190 190 191 const Int_t pixidx = pixel.GetPixelId(); … … 211 212 // Adapt the low-gain extraction range from the obtained high-gain time 212 213 // 213 if (pixel.HasLoGain() && (fMaxBinContent <fMaxBinContentLimit) )214 if (pixel.HasLoGain() && (fMaxBinContent > fMaxBinContentLimit) ) 214 215 { 215 216 deltasumlo = 0; // make logain of MExtractedSignalPix valid -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5867 r5927 260 260 const Float_t pedmean[2] = { pedes + ABoffs, pedes - ABoffs }; 261 261 262 fMaxBinContent = 0; 262 263 // 263 264 // Check for saturation in all other slices … … 274 275 maxpos = p-ptr; 275 276 } 277 278 if (*p > fMaxBinContent) 279 fMaxBinContent = *p; 276 280 277 281 if (*p++ >= fSaturationLimit) … … 296 300 } 297 301 302 if (*logain > fMaxBinContent) 303 fMaxBinContent = *logain; 304 298 305 if (*logain++ >= fSaturationLimit) 299 306 if (!sat) -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.cc
r5747 r5927 217 217 218 218 Float_t PedMean[2] = { pedes + ABoffs, pedes - ABoffs }; 219 220 fMaxBinContent = 0; 219 221 // 220 222 // Check for saturation in all other slices … … 229 231 fHiGainSignal[count] = signal; 230 232 233 if (*p > fMaxBinContent) 234 fMaxBinContent = *p; 235 231 236 if (*p++ >= fSaturationLimit) 232 237 if (!sat) … … 285 290 sum += signal - fHiGainSignal[count]; 286 291 fHiGainSignal[count + fWindowSizeHiGain] = signal; 292 293 if (*l > fMaxBinContent) 294 fMaxBinContent = *logain; 295 287 296 if (*l++ >= fSaturationLimit) 288 297 if (!sat) -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r5813 r5927 311 311 const Float_t pedmean[2] = { pedes + ABoffs, pedes - ABoffs }; 312 312 313 fAbMax = 0.;314 fAbMaxPos = 0.;315 fHalfMax = 0.;316 Int_t maxpos= 0;317 Int_t max 313 fAbMax = 0.; 314 fAbMaxPos = 0.; 315 fHalfMax = 0.; 316 fMaxBinContent = 0; 317 Int_t maxpos = 0; 318 318 319 319 // … … 327 327 *sample++ = (Float_t)*p - pedmean[(ids++ + abflag) & 0x1]; 328 328 329 if (*p > max)329 if (*p > fMaxBinContent) 330 330 { 331 331 maxpos = ids-fHiGainFirst-1; 332 max= *p;332 fMaxBinContent = *p; 333 333 } 334 334 … … 349 349 *sample++ = (Float_t)*logain - pedmean[(ids++ + abflag) & 0x1]; 350 350 351 if (*logain > max)351 if (*logain > fMaxBinContent) 352 352 { 353 353 maxpos = ids-fHiGainFirst-1; 354 max= *logain;354 fMaxBinContent = *logain; 355 355 } 356 356
Note:
See TracChangeset
for help on using the changeset viewer.