Changeset 19954 for trunk/Mars


Ignore:
Timestamp:
05/04/20 10:51:49 (5 years 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

    r19950 r19954  
    123123void MMcEvt::Clear(Option_t *opt)
    124124{
     125    fRunNumber = 0;
     126
    125127    fPartId = kUNDEFINED;
    126128    fEnergy = -1;
     
    272274
    273275    if (!fin.SetRefAddress("MMcEvt.fEvtNumber",         fEvtNumber        ))  return kFALSE;
    274     if (!fin.SetRefAddress("MMcEvt.fRunNumber",         fRunNumber        ))  return kFALSE;
     276    if (!fin.SetRefAddress("MMcEvt.fRunNumber",         fRunNumber        ))  { /* not in files < v7 */ }
    275277    if (!fin.SetRefAddress("MMcEvt.fThick0",            fThick0           ))  return kFALSE;
    276278    if (!fin.SetRefAddress("MMcEvt.fFirstTarget",       fFirstTarget      ))  return kFALSE;
Note: See TracChangeset for help on using the changeset viewer.