- Timestamp:
- 01/31/05 16:14:26 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc
r6150 r6151 271 271 // Shift the start slice to the left: 272 272 // 273 if (higainfirst > fHiGainFirst + fOffsetLeftFromPeak)273 if (higainfirst >= fHiGainFirst + fOffsetLeftFromPeak) 274 274 fHiGainFirst = higainfirst - fOffsetLeftFromPeak; 275 275 else … … 279 279 // Shift the last slice to the right: 280 280 // 281 if (higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain < hiGainLastsave)281 if (higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain <= hiGainLastsave) 282 282 fHiGainLast = higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain; 283 283 else … … 285 285 286 286 287 if ( fHiGainFirst+(Int_t)fOffsetLoGain > fLoGainFirst )287 if ( fHiGainFirst+(Int_t)fOffsetLoGain >= fLoGainFirst ) 288 288 fLoGainFirst = fHiGainFirst + (Int_t)fOffsetLoGain; 289 289 else … … 400 400 401 401 if (fHiGainOutOfRangeLeft > 0) 402 *fLog << warn << GetDescriptor() << ": " << fHiGainOutOfRangeLeft*100/GetNumExecutions() << "% ranging out of high-gain window to the left!" << endl; 402 *fLog << warn << GetDescriptor() << ": " << Form("%4.2f",((Float_t)fHiGainOutOfRangeLeft*100)/GetNumExecutions()) 403 << "% ranging out of high-gain window to the left!" << endl; 403 404 if (fHiGainOutOfRangeRight > 0) 404 *fLog << warn << GetDescriptor() << ": " << fHiGainOutOfRangeRight*100/GetNumExecutions() << "% ranging out of high-gain window to the right!" << endl; 405 *fLog << warn << GetDescriptor() << ": " << Form("%4.2f",((Float_t)fHiGainOutOfRangeRight*100/GetNumExecutions()) 406 << "% ranging out of high-gain window to the right!" << endl; 405 407 if (fLoGainOutOfRangeLeft > 0) 406 *fLog << warn << GetDescriptor() << ": " << fLoGainOutOfRangeLeft*100/GetNumExecutions() << "% ranging out of low-gain window to the left!" << endl; 408 *fLog << warn << GetDescriptor() << ": " << Form("%4.2f",((Float_t)fLoGainOutOfRangeLeft*100/GetNumExecutions()) 409 << "% ranging out of low-gain window to the left!" << endl; 407 410 if (fHiGainOutOfRangeRight > 0) 408 *fLog << warn << GetDescriptor() << ": " << fHiGainOutOfRangeRight*100/GetNumExecutions() << "% ranging out of high-gain window to the right!" << endl; 411 *fLog << warn << GetDescriptor() << ": " << Form("%4.2f",((Float_t)fHiGainOutOfRangeRight*100/GetNumExecutions()) 412 << "% ranging out of high-gain window to the right!" << endl; 409 413 410 414
Note:
See TracChangeset
for help on using the changeset viewer.