The ownership rules depends on the object type. TTree and the histograms (anything inheriting from TH1 like, TH1F, TH1D, TH2D, etc…), TEventList, TEntryList and TGraph2D (but NOT TGraph) are owned by the directory which is the current on at the time they are created. All the other, are owner by the user (by default).