Re: [ROOT] index out of bounds error in a TTree

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Aug 21 2003 - 11:30:03 MEST


Hi Chris,

Could you send me a short script using your file that reproduces this problem?
I can run on lxplus. However don't forget to put your file in a public read
area.

Rene Brun


Chris Hayward wrote:
> 
> Hello ROOTers,
> I am using ROOT 3.05/07 with gcc 2.96 on lxplus.
> 
> I have a program which creates a TTree fine, but when I load the TTree I
> get the following error message:
> 
> Error in <TObjArray::At>: index 12 out of bounds (size: 13, this:
> 0x08971d20)
> 
> I have looked at my arrays but I do not seem to be going out of bounds
> anywhere in my program. Is there a way for me to trace what object is at
> the given address? Is there some other way to find out what the problem
> is?
> 
> Additionally, I would like to create a new tree on each run of my program
> and add it as a friend to the first tree. I would like to name them tree0,
> tree1, tree2, etc. Is there a simple way to keep a running count of trees
> in the file, i.e. some command that returns the number of trees stored?
> 
> Thanks,
> Chris



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