Re: [ROOT] arrays and STL classes in trees

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Mar 18 2003 - 14:34:00 MET


Hi Bernhard,

Bernhard Ketzer wrote:
> 
> Hi Rooters,
> 
> I have two questions concerning trees, the answers to which were not
> obvious to me from the documentation:
> 
> 1. Is it possible to split branches containing STL objects like list and
> vector?
> 
Not with the current version, but we already have the code (thanks Victor)
to support spliting for STL collections vector<T>, vector<T*> and list.
We are expecting to include this new code in teh next release of ROOT.


> 2. In a branch with a 2-dim array (e.g. a matrix), can both dimensions
> be variable?

If you use basic C++ types, only one dimension can be variable.
However, classes like TMatrix, TH2 are examples of variable dimensions
in higher level objects.

Rene Brun

> 
> Thanks for your help,
> 
>         Bernhard



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