Changeset 5416 for trunk/MagicSoft/Mars
- Timestamp:
- 11/17/04 10:05:26 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5415 r5416 39 39 - adapt the histogram ranges slightly because I have found high 40 40 intensity calibration events creating non desired overflows. 41 42 * msignal/MExtractTimeAndChargeSlidingWindow.cc 43 - fixed a bug in the setting of the window which set always the 44 default before. 41 45 42 46 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.cc
r5374 r5416 150 150 { 151 151 152 const Byte_t availhirange = (fHiGainLast-fHiGainFirst+1) & ~1; 152 fWindowSizeHiGain = windowh; 153 fWindowSizeLoGain = windowl; 154 155 const Byte_t availhirange = fHiGainLast-fHiGainFirst+1; 153 156 154 157 if (fWindowSizeHiGain > availhirange) … … 162 165 } 163 166 164 if (fWindowSizeHiGain< 2)165 { 166 fWindowSizeHiGain = 2;167 *fLog << warn << GetDescriptor() << ": High Gain window size too small, set to two samples" << endl;167 if (fWindowSizeHiGain<1) 168 { 169 fWindowSizeHiGain = 1; 170 *fLog << warn << GetDescriptor() << ": High Gain window size too small, set to one sample" << endl; 168 171 } 169 172 170 173 if (fLoGainLast != 0 && fWindowSizeLoGain != 0) 171 174 { 172 const Byte_t availlorange = (fLoGainLast-fLoGainFirst+1) & ~1;175 const Byte_t availlorange = fLoGainLast-fLoGainFirst+1; 173 176 174 177 if (fWindowSizeLoGain > availlorange) … … 180 183 << ": Will set window size to: " << (int)availlorange << endl; 181 184 fWindowSizeLoGain = availlorange; 182 }183 184 if (fWindowSizeLoGain<2)185 {186 fWindowSizeLoGain = 2;187 *fLog << warn << GetDescriptor() << ": Low Gain window size too small set to two samples" << endl;188 185 } 189 186 }
Note:
See TracChangeset
for help on using the changeset viewer.