Changeset 5839 for trunk/MagicSoft/Mars
- Timestamp:
- 01/14/05 14:02:00 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5838 r5839 27 27 me. 28 28 29 * mpedestal/MPedCalcFromLoGain.cc 30 - fixed one warning output which was not a real warning. 29 31 30 32 … … 67 69 * msignal/MExtractTimeFastSpline.cc: 68 70 - fixed delete --> delete[] 69 70 71 71 72 -
trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.cc
r5829 r5839 231 231 Bool_t MPedCalcFromLoGain::ReInit(MParList *pList) 232 232 { 233 const UShort_t hisamples = fRunHeader->GetNumSamplesHiGain(); 234 const UShort_t losamples = fRunHeader->GetNumSamplesLoGain(); 235 236 fSlices.Set(hisamples+losamples); 237 238 UShort_t lastavailable = hisamples+losamples-1; 239 240 if (fExtractor) 241 lastavailable = losamples-1; 242 243 // If the size is not yet set, set the size 244 if (fSumx.GetSize()==0) 245 { 246 const Int_t npixels = fPedestalsOut->GetSize(); 247 fNumEventsUsed.Set(npixels); 248 fTotalCounter.Set(npixels); 249 } 250 251 if (fExtractWinLast > lastavailable) //changed to override check 252 { 253 const UShort_t diff = fExtractWinLast - lastavailable; 254 *fLog << warn << GetDescriptor(); 255 *fLog << " - WARNING: Selected Extract Window ranges out of range...adjusting to last available slice "; 256 *fLog << lastavailable << endl; 257 258 fExtractWinLast -= diff; 259 fExtractWinSize -= diff; 260 } 261 262 lastavailable = hisamples + losamples -1; 263 264 if (fCheckWinLast > lastavailable) //changed to override check 265 { 266 *fLog << warn << GetDescriptor(); 267 *fLog << " - WARNING: Last Check Window slice out of range...adjusting to last available slice "; 268 *fLog << lastavailable << endl; 269 270 fCheckWinLast = lastavailable; 271 } 272 273 return MExtractPedestal::ReInit(pList); 233 234 const UShort_t hisamples = fRunHeader->GetNumSamplesHiGain(); 235 const UShort_t losamples = fRunHeader->GetNumSamplesLoGain(); 236 237 fSlices.Set(hisamples+losamples); 238 239 UShort_t lastavailable = hisamples+losamples-1; 240 241 if (fExtractor) 242 fExtractWinLast = fExtractWinFirst + fExtractor->GetWindowSizeHiGain() - 1; 243 244 // If the size is not yet set, set the size 245 if (fSumx.GetSize()==0) 246 { 247 const Int_t npixels = fPedestalsOut->GetSize(); 248 fNumEventsUsed.Set(npixels); 249 fTotalCounter.Set(npixels); 250 } 251 252 if (fCheckWinLast > lastavailable) //changed to override check 253 { 254 *fLog << warn << GetDescriptor(); 255 *fLog << " - WARNING: Last Check Window slice out of range...adjusting to last available slice "; 256 *fLog << lastavailable << endl; 257 258 fCheckWinLast = lastavailable; 259 } 260 261 if (fExtractWinLast > lastavailable) 262 { 263 if (fExtractor) 264 { 265 *fLog << err << GetDescriptor(); 266 *fLog << " - ERROR: Selected Last Extraction Window: " 267 << fExtractWinFirst + fExtractor->GetWindowSizeHiGain()-1 268 << "ranges out of range: " << lastavailable-1 << endl; 269 return kFALSE; 270 } 271 else 272 { 273 const UShort_t diff = fExtractWinLast - lastavailable; 274 *fLog << warn << GetDescriptor(); 275 *fLog << " - WARNING: Selected Extract Window ranges out of range...adjusting to last available slice "; 276 *fLog << lastavailable << endl; 277 278 fExtractWinLast -= diff; 279 fExtractWinSize -= diff; 280 } 281 } 282 283 return MExtractPedestal::ReInit(pList); 274 284 } 275 285
Note:
See TracChangeset
for help on using the changeset viewer.