Changeset 5342 for trunk/MagicSoft
- Timestamp:
- 11/05/04 00:26:32 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5340 r5342 39 39 - Removed obsolete check of old MC files, which needed the removed 40 40 data member MMcRunHeader.fTelesTheta. 41 42 2004/11/04: Markus Gaug 43 44 * mjobs/MJPedestal.cc 45 - adapted to changes in MPedCalcFromLoGain 41 46 42 47 2004/11/04: Nepomuk Otte -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r5316 r5342 665 665 { 666 666 if (IsUseData()) 667 pedlogain.Set WindowSize(12,(Int_t)fExtractor->GetNumHiGainSamples());667 pedlogain.SetExtractWindow(15,(Int_t)fExtractor->GetNumHiGainSamples()); 668 668 else 669 669 { -
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.