Re: [ROOT] Fill TClonesArray with a TArrayI*

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu May 10 2001 - 15:50:36 MEST


Hi Valerie,

In version 3.00, a TClonesArray with variable length items cannot be used
in a Tree branch in split mode.

This option will be supported in version 3.01 to be released in a few weeks.

Rene Brun

Valerie Halyo wrote:
> 
> I made a class that one of its member is a pointer to an Int*,
>  Int_t*  Iarray;
> Class foo(Int_t length,Int_t* Iarray);
> 
> In the class I created a pointer to a TArrayI*
> and copied Iarray to my private array.
> 
> Once I set my foo class
> I made a TClonesArray of many foo objects
> 
> and at the end I wanted to write it to a root file Tree.
> 
> The program compiled ok but when I started to run
> the executable I got the following message
> 
> Warning in <TBranchClones::BranchClones>: Cannot process member:array
> 
> I dont understand if it is impossible to write that kind of
> TClonesArray objects to a Tree or I am probably doing something wrong.
> 
> Thanks a  lot
> Valerie



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