"files" on TFile

From: Mariusz Stanczak (MStanczak@sprintmail.com)
Date: Mon Apr 06 1998 - 09:33:04 MEST


Hello,
   If someone, please, could help me understand a couple of things;
first, after creating a directory on a .root file, how to actually put
a "file" in that directory (in a .C macro)?
   Let me clarify... i have a time series data that lands itself nicely
to the idea of a directory structure, as follows;
	root_file:/type/date/time <- this file would contain the data,
		which consists of a mixture of strings and floats.
   This seemed like the simplest way to pursue, but hours of reading
the HTML docs still wouldn't point me to a way to write out, be it as a
structure, or a class, the actual data.

   So, for the time being,  I ended up with a combination of directories
and TTree files, as follows;
	root_file:/type/date <- TTree containing the rest of data
but with this scheme I've ran into a problem as well.  I create the file
OK, but getting the data back eluded me so far.  I can loop through
all the directories, all the trees and the branches in them, but things
either blow up when I try to read the leaves containing the actual data,
or I get incorrect values.  I expected to get the data through TLeaf->
GetValuePointer(), but it doesn't seem to be so.  What am I missing here?
This is all with a 2.03 version on NT. 

Thanks in advance,

/Mariusz



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