I think I don’t understand the documentation. I have multiple TTrees appearing in the output TFile, and this is confusing to anyone who opens the file but hasn’t read this forum. Am I supposed to live with this? Or am I missing the way of resolving it?
Thanks Wile. I saw this solution with TObject::kOverwrite, too. But I also noticed that for TTrees, we are explicitly told to call Write only on the TTree’s GetCurrentFile, and not on the TTree itself: