- Timestamp:
- 10/23/06 13:27:21 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationPulseTimeCam.cc
r7430 r8147 414 414 Byte_t *end = start + pixel.GetNumHiGainSamples(); 415 415 Byte_t *p = start; 416 Byte_t max = 0;416 Byte_t *max = start; 417 417 Int_t maxpos = 0; 418 418 419 419 while (p < end) 420 420 { 421 if ( (*p > max) && (*p < fSaturationLimit))421 if (*p > *max) 422 422 { 423 max = *p;423 max = p; 424 424 maxpos = p-start-1; 425 425 } … … 433 433 while (p < end) 434 434 { 435 if ( (*p > max) && (*p < fSaturationLimit))435 if (*p > *max) 436 436 { 437 max = *p;437 max = p; 438 438 maxpos = p-start+pixel.GetNumHiGainSamples() - 1; 439 439 } … … 441 441 } 442 442 443 if ( max < fLowerSignalLimit)443 if (*max < fLowerSignalLimit || *max > fSaturationLimit) 444 444 continue; 445 445
Note:
See TracChangeset
for help on using the changeset viewer.