Browsing the contents of a file...

From: Gordon Watts (Brown University) (gwatts@fnal.gov)
Date: Tue Oct 07 1997 - 20:22:15 MEST


Hi,
  I'm just getting started with Root, so perhaps this question is a little
off. I'm using the NT version, the most recent development version. I
converted a 3 meg PAW ntuple to a ROOT file. I then wanted to browse the
contents of the file (basically, I wanted to do a "ntuple/print" on the
guy). The instructions for the conversion talk about using the TBrowser.
So, first I created a TFile that pointed to the file, and that worked just
fine. I then created a browser object and up poped the window just fine. I
was even able to find the instance of the file object under the global
varriables section. However, when I clicked on the file object (as when I
clicked on almost anything else) I got an error saying the "Browse" method
needs to be over-ridden.

  What is the proper method to look for the various branchs and trees, etc.
that are in a file?

  I was able, in the end, to see what was in the file by getting the ntuple
object, and then invoking the "MakeCode" method on it. BTW, in the
instructions for doing this (in the HOWTO section of the web pages) you
have the call written as "MakeCode.C("filename.c");" The ".C" isn't valid
as far as I can tell.

  Finally, I note that ROOT on NT seems to be built with MSVC 4.0. I will
need to build some libraries and add them to ROOT as sharable (I guess).
Unfortunately, I've only got access to 5.0. Anyone using this
configuration: are there any potholes I should know about?

  Thanks for your help.

	Cheers,
		Gordon.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:21 MET