add basic TTree features to save output data in ROOT Tree.