- Timestamp:
- 02/03/05 10:42:15 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc
r6166 r6229 271 271 MRawEvtPixelIter pixel(fRawEvt); 272 272 273 Int_t sat ;274 Byte_t satpos ;273 Int_t sat = 0; 274 Byte_t satpos = 0; 275 275 ULong_t gsatpos = 0; 276 276 277 277 Int_t maxsumhi = -1000000; 278 278 Int_t numsat = 0; 279 Byte_t startslice;279 Byte_t startslice = 0; 280 280 281 281 Byte_t hiGainFirstsave = fHiGainFirst; … … 319 319 fHiGainFirst = higainfirst - fOffsetLeftFromPeak; 320 320 else 321 fHiGainOutOfRangeLeft++; 322 321 { 322 // *fLog << err << (Int_t)higainfirst << " " << (int)fHiGainFirst << " " << (int)fOffsetLeftFromPeak << endl; 323 fHiGainOutOfRangeLeft++; 324 } 325 323 326 // 324 327 // Shift the last slice to the right: 325 328 // 326 329 const Byte_t rlim = higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain; 327 if (rlim <= hiGainLastsave+fHiLoLast)328 if (rlim > hiGainLastsave)330 if (rlim <= fHiGainLast+fHiLoLast) 331 if (rlim > fHiGainLast) 329 332 fHiLoLast = rlim - fHiGainLast; 330 333 else … … 334 337 } 335 338 else 336 fHiGainOutOfRangeRight++; 337 338 339 { 340 fHiGainOutOfRangeRight++; 341 // *fLog << err << (Int_t)higainfirst << endl; 342 } 343 339 344 const Byte_t llim = fHiGainFirst + (Int_t)fOffsetLoGain; 340 345 if ( llim >= fLoGainFirst ) … … 544 549 545 550 MExtractTimeAndChargeDigitalFilter::Print(o); 546 *fLog << " Offset from Peak left: " << fOffsetLeftFromPeak << endl;547 *fLog << " Offset from Peak right: " << fOffsetRightFromPeak << endl;548 *fLog << " Peak search window size: " << fPeakSearchWindowSize << endl;551 *fLog << " Offset from Peak left: " << (int)fOffsetLeftFromPeak << endl; 552 *fLog << " Offset from Peak right: " << (int)fOffsetRightFromPeak << endl; 553 *fLog << " Peak search window size: " << (int)fPeakSearchWindowSize << endl; 549 554 *fLog << " High Gain Failure limit: " << fHiGainFailureLimit << endl; 550 555 *fLog << " Low Gain Failure limit: " << fLoGainFailureLimit << endl;
Note:
See TracChangeset
for help on using the changeset viewer.