[ROOT] Openning of file.root

From: zaldy (zaldy@neutrino.kek.jp)
Date: Fri Dec 05 2003 - 10:31:56 MET


Dear Rooters,

This must be an known question. But I have not been to it yet

I wanted to open a tree file file.root which is converted by h2root. This 
file is written by other users. I  want to inspect the content of this 
file using TFile f("file.root"), then f.ls(), but I dont see the object 
name of the Tree. I only see something like this:

TFile**         run005.000001.root       HBOOK file: run005.000001.hbk converted to ROOT
 TFile*         run005.000001.root       HBOOK file: run005.000001.hbk converted to ROOT

I tried f.ReadKeys(), but does solve it.
I wanted to write a class using the 
Object_Tree_I_am_Looking->MakeClass("Name"), so I need to know the object 
name.

How do we proceed openning this file?

Thank you.


-- 

--------------------------------------------------------
                   Zaldy A. Nawang 
                   PS Users Room 2
                   Yon Gokan, 
                   E362, Neutrino Group, 
                   IPNS, KEK, 
                   Japan 
                    
                   e-mail: zaldy@neutrino.kek.jp
                   Tel. No. : (81) 029864 - 5387
--------------------------------------------------------



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:17 MET