Unintended copies of TTrees being saved to TFile

Usually, the last cycle contains all the data and ttree->Get(“treename”) will retrieve the last one.