Changeset 9080


Ignore:
Timestamp:
08/04/08 12:27:38 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9079 r9080  
    3434   * mbase/MParEmulated.[h,cc]:
    3535     - 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
    3641
    3742
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r8999 r9080  
    298298        }
    299299
    300         // Old formats can not contain a run number larger 0
     300        // Old formats can not contain a run number larger 999999
    301301        if (fRunNumber<1000000)
    302302        {
     
    444444Bool_t MRawRunHeader::FixAssignment()
    445445{
     446    if (!fTelescopeNumber==1)
     447        return kTRUE;
     448
    446449    if (fRunNumber>=53300 && fRunNumber<=68754)
    447450    {
     
    494497        fNumEventsRead--;
    495498        *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;
    496506    }
    497507
     
    604614    }
    605615
    606     // ----- Consistency checks -----
    607     if (!IsConsistent())
    608         return kFALSE;
    609 
    610616    //
    611617    // calculate size of array, create it and fill it
     
    620626        fin.read(dummy, 16);
    621627
    622     return Fixes();
     628    // ----- Fixes for broken files or contents -----
     629    if (!Fixes())
     630        return kFALSE;
     631
     632    // ----- Consistency checks -----
     633    return IsConsistent();
    623634}
    624635
     
    727738    fRunStop.SetBinary(Int+91);
    728739
    729     // ----- Consistency checks -----
    730     if (!IsConsistent())
    731         return kFALSE;
    732 
    733740    // ----- 388 bytes so far -----
    734741
     
    746753        (*fPixAssignment)[i] = Int[97+i];
    747754
    748     return Fixes();
     755    // ----- Fixes for broken files or contents -----
     756    if (!Fixes())
     757        return kFALSE;
     758
     759    // ----- Consistency checks -----
     760    return IsConsistent();
    749761}
    750762
Note: See TracChangeset for help on using the changeset viewer.