The attached code : oo.C, produce the following error. If one swap the sequence of loading f0 and f1, i.e. mm.C
, then it runs OK. Any hints are appreciated.
Error in TBasket::Streamer: The value of fKeylen is incorrect (-23644) ; trying to recover by setting it to zero
Error in TBasket::Streamer: The value of fObjlen is incorrect (-2020426277) ; trying to recover by setting it to zero
Error in TBranch::GetBasket: File: o2.root at byte:3872444835, branch:m, entry:0, badread=1, nerrors=1, basketnumber=0
As a workaround, making the file from which the TNtuple comes from the current file before calling Clone fixes the issue (switching the order in which you open the files as you do in mm.C has the same effect):