Changeset 6138
- Timestamp:
- 01/30/05 19:29:40 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r6089 r6138 395 395 return; 396 396 397 time = max_p + fTimeShiftHiGain /* this shifts the time to the start of the rising edge */397 time = max_p + fTimeShiftHiGain + (Float_t)fHiGainFirst /* this shifts the time to the start of the rising edge */ 398 398 - ((Float_t)t_iter)/fBinningResolutionHiGain; 399 399 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilterPeakSearch.cc
r6117 r6138 77 77 using namespace std; 78 78 79 const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgHiGainFirst = 1;80 const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgHiGainLast = 1 5;79 const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgHiGainFirst = 0; 80 const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgHiGainLast = 18; 81 81 const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgLoGainFirst = 3; 82 82 const Byte_t MExtractTimeAndChargeDigitalFilterPeakSearch::fgLoGainLast = 14; … … 230 230 // Shift the start slice to the left: 231 231 // 232 if (higainfirst > f OffsetLeftFromPeak)232 if (higainfirst > fHiGainFirst + fOffsetLeftFromPeak) 233 233 fHiGainFirst = higainfirst - fOffsetLeftFromPeak; 234 234 else 235 *fLog << warn << " High Gain ranges out of limits to the left!!! " << endl;235 *fLog << warn << " High Gain ranges out of limits to the left!!! " << (Int_t)higainfirst << endl; 236 236 237 237 // 238 238 // Shift the last slice to the right: 239 239 // 240 if (higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain >hiGainLastsave)240 if (higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain < hiGainLastsave) 241 241 fHiGainLast = higainfirst + fOffsetRightFromPeak + fWindowSizeHiGain; 242 242 else 243 *fLog << warn << " High Gain ranges out of limits to the right!!! " << endl; 243 *fLog << warn << " High Gain ranges out of limits to the right!!! " << (Int_t)higainfirst << endl; 244 244 245 245 246 if ( fHiGainFirst+(Int_t)fOffsetLoGain > fLoGainFirst ) 246 247 fLoGainFirst = fHiGainFirst + (Int_t)fOffsetLoGain; 247 248 else 248 *fLog << warn << " High Gain ranges out of limits to the left!!! "<< endl;249 *fLog << inf << " High Gain ranges out of limits to the left!!! " << (Int_t)fHiGainFirst << endl; 249 250 250 251 //
Note:
See TracChangeset
for help on using the changeset viewer.