RE: [ROOT] ROOT data format

From: Johnson, Tony S. (tony_johnson@SLAC.stanford.edu)
Date: Thu Jun 07 2001 - 19:35:08 MEST


> > Is there some way of reading ROOT data files into a non-ROOT program,
> > without linking to ROOT at all?
> > another way of asking this: whats the data file format, in terms of its
> > byte structure?

> ROOT is essentially (50%, Rene  correct me)  the package 
> to read/write ROOT files ...

It may be true that a large fraction of Root deals with IO, but in fact once you understand the format of the Root files it is relatively easy to decode them. The Java package I wrote to read Root files is about 5000 lines of code, including demos and utilities, and I believe it can now handle all Root files (modulo my bugs) as long as they have correct StreamerInfo embedded in them. 

The vast amount of the work in writing such a package is in understanding the internal format, so even if you are not interested in using Java, looking at the Java package may help in understanding Root's internal file format.

Tony



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:49 MET