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/MMcEvtBasic.cc

    r19992 r19993  
    1818!   Author(s): Abelardo Moralejo, 02/2005 <mailto:moralejo@pd.infn.it>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2005
     20!   Copyright: MAGIC Software Development, 2000-2020
    2121!
    2222!
     
    9393                         Float_t fImpa, Float_t fTPhii, Float_t fTThet)
    9494   : fPartId(usPId), fEnergy(fEner), fImpact(fImpa),
    95      fTelescopePhi(fTPhii), fTelescopeTheta(fTThet), fTheta(0), fPhi(0)
     95     fTelescopePhi(fTPhii), fTelescopeTheta(fTThet), fTheta(0), fPhi(0), fCoreX(0), fCoreY(0)
    9696{
    9797    fName  = "MMcEvtBasic";
     
    112112    fPhi            = evt.fPhi;
    113113    fTheta          = evt.fTheta;
     114    fCoreX          = evt.fCoreX;
     115    fCoreY          = evt.fCoreY;
    114116}
    115117
     
    130132    fTheta          = 0;
    131133    fPhi            = 0;
     134
     135    fCoreX          = 0;
     136    fCoreY          = 0;
    132137}
    133138
     
    237242        *fLog << "Energy: " << fEnergy << "GeV" << endl;
    238243    if (str.Contains("impact", TString::kIgnoreCase))
    239         *fLog << "Impact: " << fImpact << "cm" << endl;
     244        *fLog << "Impact: " << fImpact << "cm [x=" << fCoreX << ", y=" << fCoreY << "]" << endl;
    240245}
    241246
     
    256261    if (!fin.SetRefAddress("MMcEvtBasic.fPhi",            fPhi           ))  return kFALSE;
    257262
     263    // Written to MMcEvt for MMcEvtBasic < V4
     264    if (fin.HasColumn("MMcEvtBasic.fCoreX"))
     265        if (!fin.SetRefAddress("MMcEvtBasic.fCoreX", fCoreX))
     266            return kFALSE;
     267
     268    if (fin.HasColumn("MMcEvtBasic.fCoreY"))
     269        if (!fin.SetRefAddress("MMcEvtBasic.fCoreY", fCoreY))
     270            return kFALSE;
     271
    258272    return kTRUE;
    259273}
Note: See TracChangeset for help on using the changeset viewer.