Changeset 4252 for trunk/MagicSoft
- Timestamp:
- 06/01/04 13:21:36 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4251 r4252 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2004/06/01: Abelardo Moralejo 22 23 * msignal/MExtractFixedWindowPeakSearch.[h,cc] 24 - Added variable fLowGainPeakShift and setter. It allows to shift 25 the integration window for low gain with respect to the one of 26 the high gain. By default its value is 0 (corresponding to a 27 total delay of 15 slices) so that default behaviour of the 28 extractor is the same as before. 20 29 21 30 2004/06/01: Markus Gaug -
trunk/MagicSoft/Mars/msignal/MExtractFixedWindowPeakSearch.cc
r4119 r4252 55 55 // fLoGainWindowSize = fgLoGainWindowSize = 6 56 56 // fPeakSearchWindowSize = fgPeakSearchWindowSize = 4 57 // fLowGainPeakShift = fgLowGainPeakShift = 0 57 58 // 58 59 ////////////////////////////////////////////////////////////////////////////// … … 83 84 const Byte_t MExtractFixedWindowPeakSearch::fgPeakSearchWindowSize = 4; 84 85 const Byte_t MExtractFixedWindowPeakSearch::fgOffsetFromWindow = 1; 86 const Byte_t MExtractFixedWindowPeakSearch::fgLowGainPeakShift = 0; 85 87 // -------------------------------------------------------------------------- 86 88 // … … 91 93 // - fWindowSizeLoGain to fgWindowSizeLoGain 92 94 // - fPeakSearchWindowSize to fgPeakSearchWindowSize 95 // - fLowGainPeakShift to fgLowGainPeakShift 93 96 // 94 97 // Calls: … … 99 102 : fWindowSizeHiGain(fgHiGainWindowSize), 100 103 fWindowSizeLoGain(fgLoGainWindowSize), 101 fPeakSearchWindowSize(fgPeakSearchWindowSize) 104 fPeakSearchWindowSize(fgPeakSearchWindowSize), 105 fLowGainPeakShift(fgLowGainPeakShift) 102 106 { 103 107 … … 392 396 393 397 394 loGainFirst = ( hiGainFirst > fLoGainFirst ) ? hiGainFirst : fLoGainFirst; 398 loGainFirst = ( hiGainFirst+fLowGainPeakShift > fLoGainFirst ) ? 399 hiGainFirst+fLowGainPeakShift : fLoGainFirst; 395 400 396 401 // Make sure we will not integrate beyond the hi gain limit: -
trunk/MagicSoft/Mars/msignal/MExtractFixedWindowPeakSearch.h
r4119 r4252 17 17 static const Byte_t fgLoGainWindowSize; // Default for fWindowSizeLoGain (now set to: 6) 18 18 static const Byte_t fgPeakSearchWindowSize; // Default for fPeakSearchWindowSize (now set to: 4) 19 static const Byte_t fgOffsetFromWindow; // Default for fOffsetFromWindow (now set to: 2) 20 19 static const Byte_t fgOffsetFromWindow; // Default for fOffsetFromWindow (now set to: 1) 20 static const Byte_t fgLowGainPeakShift; // Default for fLowGainPeakShift (now set to: 0) 21 21 22 Byte_t fWindowSizeHiGain; // Number of Hi Gain slices in window 22 23 Byte_t fWindowSizeLoGain; // Number of Lo Gain slices in window 23 24 Byte_t fPeakSearchWindowSize; // Size of FADC window in the search for the highest peak of all pixels. 24 25 Byte_t fOffsetFromWindow; // Number of slices to start extraction before search window 26 Byte_t fLowGainPeakShift; // Shift of the low gain pulse with respect to the high gain pulse, in slices: it is 0 if the low gain is delayed with respect to HG by 15 slices. 25 27 26 28 void FindSignalHiGain(Byte_t *ptr, Byte_t *logain, Int_t &sum, Byte_t &sat) const; … … 40 42 Byte_t peaksearchwindow=fgPeakSearchWindowSize); 41 43 void SetOffsetFromWindow(Byte_t offset=fgOffsetFromWindow) { fOffsetFromWindow = offset; } 44 45 void SetLowGainPeakShift(Byte_t shift=fgLowGainPeakShift) { fLowGainPeakShift = shift; } 42 46 43 47 ClassDef(MExtractFixedWindowPeakSearch, 0) // Signal Extractor for fixed size trigger-corrected extraction window
Note:
See TracChangeset
for help on using the changeset viewer.