Changeset 19832 for trunk/Mars/mhist


Ignore:
Timestamp:
10/30/19 15:34:19 (5 years ago)
Author:
tbretz
Message:
ROOTv6 does not clone these two arrays... I do not understand why.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mhist/MHCamera.cc

    r19652 r19832  
    163163    rc->SetDirectory(NULL);
    164164
     165    // It seems ROOTv6 does not properly close these two members
     166    if (rc.fUsed.GetSize()==0)
     167        rc->fUsed = fUsed;
     168    if (rc.fBinEntries.GetSize()==0)
     169        rc->fBinEntries = fBinEntries;
     170
    165171    // fGeomCam need special treatment due to its TObjArray
    166     if (rc->fGeomCam && fGeomCam)
    167     {
     172    if (rc->fGeomCam)
    168173        delete rc->fGeomCam;
     174    if (fGeomCam)
    169175        rc->fGeomCam = static_cast<MGeomCam*>(fGeomCam->Clone());
    170     }
    171176
    172177    return rc;
Note: See TracChangeset for help on using the changeset viewer.