Hi Jayoung, TFile::ls shows the name of teh file and its title, the the name and title of its sub directories. In case you have no subdirectories (your case), ls still prints the name of the directory. In your file, however, you have two copies of your Tree EVENT. Did you write it twice ? May be you have TTree::SetAutoSave active ? Rene Brun Jayoung Wu wrote: > > Hi ROOTERs, > > Somehow .ls() shows the contents twice. Could you please explain why? > > root [0] TFile f("jay.root"); > root [1] .ls(); > TFile** jay.root > TFile* jay.root > root [2] f.ls(); > TFile** jay.root > TFile* jay.root > KEY: TTree EVENT;9 Event Tree > KEY: TTree EVENT;8 Event Tree > > --- > Thanks, > Jayoung
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET