Re: [ROOT] Problem with TTree::MakeSelector/chains/var length arrays

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jan 15 2003 - 23:02:49 MET


Hi Ed,

On Tue, 14 Jan 2003, Edward Chen wrote:

> Hi - (using 3.04/02) I am storing variable length arrays in my ntuples.
> These ntuple files are chained together.  Now - if I call
> TTree::MakeSelector, the header file will declare arrays with sizes that
> correspond to the max sizes in the FIRST file, rather then look at all the
> files in the chain.
> 
> Was this intended?

Yes. MakeClass/MakeSelector require only the Tree header.
One could implement a slow option scanning all the data in all files.

> 
> Would I run into problems if I edited the header file and declared arrays
> with sizes that are much larger than the conceivable maximum size?  For
> example - if my known maximum size were 50, and I declared an array of
> length 75.  That would not cause problems with I invoked
> TChain::SetBranchAddress() would it?

You can change the max dimension without any problem.

Rene Brun

> 
> Thanks.
> 
> -Ed
> 



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