Test with TTree to solve memory problems