Changeset 9080
- Timestamp:
- 08/04/08 12:27:38 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9079 r9080 34 34 * mbase/MParEmulated.[h,cc]: 35 35 - some improvements to support collection (still not finished) 36 37 * mraw/MRawRunHeader.cc: 38 - Implemented a fix for run-numbers between 1001348 and 1001396 39 which were incorrectly assigned by the cc. 40 - changed order of fix and check 36 41 37 42 -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r8999 r9080 298 298 } 299 299 300 // Old formats can not contain a run number larger 0300 // Old formats can not contain a run number larger 999999 301 301 if (fRunNumber<1000000) 302 302 { … … 444 444 Bool_t MRawRunHeader::FixAssignment() 445 445 { 446 if (!fTelescopeNumber==1) 447 return kTRUE; 448 446 449 if (fRunNumber>=53300 && fRunNumber<=68754) 447 450 { … … 494 497 fNumEventsRead--; 495 498 *fLog << inf << "Format >V8: Stored number of events decreased by 1." << endl; 499 } 500 501 if (fFormatVersion>10 && fRunNumber<48 && 502 fRunStart.GetMjd()>54674.5 && fRunStart.GetMjd()<56476.5) 503 { 504 fRunNumber += 1001348; 505 *fLog << warn << "Format >V10: Wrong run number increased by 1001348 to " << fRunNumber << "." << endl; 496 506 } 497 507 … … 604 614 } 605 615 606 // ----- Consistency checks -----607 if (!IsConsistent())608 return kFALSE;609 610 616 // 611 617 // calculate size of array, create it and fill it … … 620 626 fin.read(dummy, 16); 621 627 622 return Fixes(); 628 // ----- Fixes for broken files or contents ----- 629 if (!Fixes()) 630 return kFALSE; 631 632 // ----- Consistency checks ----- 633 return IsConsistent(); 623 634 } 624 635 … … 727 738 fRunStop.SetBinary(Int+91); 728 739 729 // ----- Consistency checks -----730 if (!IsConsistent())731 return kFALSE;732 733 740 // ----- 388 bytes so far ----- 734 741 … … 746 753 (*fPixAssignment)[i] = Int[97+i]; 747 754 748 return Fixes(); 755 // ----- Fixes for broken files or contents ----- 756 if (!Fixes()) 757 return kFALSE; 758 759 // ----- Consistency checks ----- 760 return IsConsistent(); 749 761 } 750 762
Note:
See TracChangeset
for help on using the changeset viewer.