Re: Large Files .. separate files

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Feb 10 1998 - 10:34:24 MET


Thomas Hadig wrote:
> 
> Dear root users,
> 
> i have a question concerning large data volumes.
> 
> At H1 our data is split in approx 200 MB files which are stored on tape
> and can be retrieved via fpack. Is it possible to do it in a similar way
> in root ?
> 
> Of course it would be possible to write N events to a files, so that the
> files has an approximate size of 200 MB, but if i want to plot one variable
> i would have to copy each file from tape (which is the slowest step) and
> add up the distributions calculated for each file. It would be more clever,
> if one would have one branch of the TTree in one file, so that i
> would have to stage one file only (and maybe the files containing the
> tree structure). Is there a way in root to make this automatically ?
> (i.e. opening a TFile with a TTree containing several branches results in
> serveral files, each of them containing only a few branches ?)
> 

We will provide this feature. This is quite easy to implement.
One possible user interface could be.
After the TBranch *branch = TTree::Branch call, add an additional
statement
    branch->SetFile(file_name);
When doing the TTree::Write at the end, one must probably write
the branch definition to the file containing the branch buffers
such that this file can be used independently without accessing
the file containing the original Tree definition.
Comments are welcome.

Rene Brun



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