Changeset 20101 for trunk/Mars/mhflux


Ignore:
Timestamp:
05/21/21 15:45:06 (4 years ago)
Author:
tbretz
Message:
Trying to fix an annoying problem with the root streamer
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mhflux/MAlphaFitter.cc

    r19306 r20101  
    559559    f.fFunc = new TF1(*fFunc);
    560560    f.fFunc->SetName("Dummy");
    561     gROOT->GetListOfFunctions()->Remove(f.fFunc);
     561    gROOT->GetListOfFunctions()->Remove(fFunc);   // It seems Copy is called by the streamer which adds the fFunc
     562    gROOT->GetListOfFunctions()->Remove(f.fFunc); // to the list... make sure to remove it!
    562563}
    563564
Note: See TracChangeset for help on using the changeset viewer.