Ignore:
Timestamp:
09/21/20 11:22:10 (4 years ago)
Author:
tbretz
Message:
Adapted getter and setter.
File:
1 edited

Legend:

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

    r19992 r19993  
    1818!   Author(s):
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2007
     20!   Copyright: MAGIC Software Development, 2000-2020
    2121!
    2222!
     
    127127void MMcEvt::Clear(Option_t *opt)
    128128{
     129    MMcEvtBasic::Clear();
     130
    129131    fRunNumber = 0;
    130132
    131     fPartId = kUNDEFINED;
    132     fEnergy = -1;
    133 
    134133    fCoreD  =  0;
    135     fCoreX  =  0;
    136     fCoreY  =  0;
    137     fImpact = -1;
    138134
    139135    fPhotIni          = 0;
     
    282278    if (!fin.SetRefAddress("MMcEvt.fZFirstInteraction", fZFirstInteraction))  return kFALSE;
    283279    if (!fin.SetRefAddress("MMcEvt.fCoreD",             fCoreD            ))  return kFALSE;
    284     if (!fin.SetRefAddress("MMcEvt.fCoreX",             fCoreX            ))  return kFALSE;
    285     if (!fin.SetRefAddress("MMcEvt.fCoreY",             fCoreY            ))  return kFALSE;
    286280    if (!fin.SetRefAddress("MMcEvt.fTimeFirst",         fTimeFirst        ))  return kFALSE;
    287281    if (!fin.SetRefAddress("MMcEvt.fTimeLast",          fTimeLast         ))  return kFALSE;
     
    310304            return kFALSE;
    311305
     306    // Written to MmcEvtBasic for MMcEvt > V8
     307    if (fin.HasColumn("MMcEvt.fCoreX"))
     308        if (!fin.SetRefAddress("MMcEvt.fCoreX", fCoreX))
     309            return kFALSE;
     310
     311    if (fin.HasColumn("MMcEvt.fCoreY"))
     312        if (!fin.SetRefAddress("MMcEvt.fCoreY", fCoreY))
     313            return kFALSE;
     314
    312315    return MMcEvtBasic::SetupFits(fin);
    313316}
Note: See TracChangeset for help on using the changeset viewer.