Changeset 19955


Ignore:
Timestamp:
May 4, 2020, 10:58:15 AM (3 months ago)
Author:
tbretz
Message:
Reset fRunNumber in Clear for deft constructor and allow fRunNumber to be missing in FITS file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mmc/MMcEvt.cxx

    r19954 r19955  
    274274
    275275    if (!fin.SetRefAddress("MMcEvt.fEvtNumber",         fEvtNumber        ))  return kFALSE;
    276     if (!fin.SetRefAddress("MMcEvt.fRunNumber",         fRunNumber        ))  { /* not in files < v7 */ }
    277276    if (!fin.SetRefAddress("MMcEvt.fThick0",            fThick0           ))  return kFALSE;
    278277    if (!fin.SetRefAddress("MMcEvt.fFirstTarget",       fFirstTarget      ))  return kFALSE;
     
    302301    if (!fin.SetRefAddress("MMcEvt.fEventReuse",        fEventReuse       ))  return kFALSE;
    303302
     303    // Not in files written from MMcEvt < V8
     304    if (fin.HasColumn("MMcEvt.fRunNumber"))
     305        if (!fin.SetRefAddress("MMcEvt.fRunNumber", fRunNumber))
     306            return kFALSE;
     307
    304308    return MMcEvtBasic::SetupFits(fin);
    305309}
Note: See TracChangeset for help on using the changeset viewer.