How to read a tree and save its entries

I could not find useful things in this link: How are multiple TTree->Draw()s done?