Changeset 5342 for trunk/MagicSoft/Mars/mpedestal
- Timestamp:
- 11/05/04 00:26:32 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc
r5338 r5342 262 262 // - if a window is odd 263 263 // 264 265 264 void MPedCalcFromLoGain::SetExtractWindow(Int_t windowf, Int_t windows) 266 265 { … … 274 273 Int_t odd = windows & 0x1; 275 274 276 277 275 if (odd||(windows==0)){ 278 276 *fLog << warn << GetDescriptor() << ": Extract window size has to be even and larger 0, adjust!"<< endl; … … 284 282 fExtractWinLast = fExtractWinFirst+fExtractWinSize-1; 285 283 286 284 // 285 // NO RANGE CHECK IMPLEMENTED, YET 286 // 287 /* 288 const Byte_t availhirange = (fHiGainLast-fHiGainFirst+1) & ~1; 289 const Byte_t availlorange = (fLoGainLast-fLoGainFirst+1) & ~1; 290 291 if (fWindowSizeHiGain > availhirange) 292 { 293 *fLog << warn; 294 *fLog << GetDescriptor() << ": HiGain window " << (int)fWindowSizeHiGain; 295 *fLog << " out of range [" << (int)fHiGainFirst; 296 *fLog << "," << (int)fHiGainLast << "]" << endl; 297 *fLog << "Will set window size to " << (int)availhirange << endl; 298 fWindowSizeHiGain = availhirange; 299 } 300 301 if (fWindowSizeLoGain > availlorange) 302 { 303 *fLog << warn; 304 *fLog << GetDescriptor() << ": LoGain window " << (int)fWindowSizeLoGain; 305 *fLog << " out of range [" << (int)fLoGainFirst; 306 *fLog << "," << (int)fLoGainLast << "]" << endl; 307 *fLog << "Will set window size to " << (int)availlorange << endl; 308 fWindowSizeLoGain = availlorange; 309 } 310 */ 287 311 } 288 312
Note:
See TracChangeset
for help on using the changeset viewer.