Re: [ROOT] About the merge for root file which include the trees.

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Apr 21 2003 - 16:58:15 MEST


Hi,

Unfortunately, you do not indicate which version of ROOT and OS.
I cannot reproduce this problem with the current version 3.05/03

Rene Brun

On Mon, 21 
Apr 2003, dwkim wrote:

> Hello!
> My name is dongwook kim.
> I tried merge the root files which include the histograms and a tree(tree name=JetMet, Brach name=Event, subBranch names=TObject, EventHeader, .....) as follow as below,
> 
> {
> gSystem.Load($ROOTSYS/test/libEvent.so");
> Event *event = new Event();
> TChain ch("JetMet");
> ch.SetBranchAddress("event",&event);
> ch.Add("wh_bbmn_0_0_0.root");
> ch.Add("wh_bbmn_250_0_0.root");
> ch.Merge("test_merge.root");
> }
> 
> Then I met the error message as below,
> Error in <TObjArray:At>:index -16662 out of bounds (size:13, this: 0x087e5b58)
> Error in <TObjArray::AddAt>: out of bounds at 16662 in 87e5b58
> *** Break *** segmentation violation
> Generating stact trace ...
> .........
> 
> May I know what I had miss for the merging root files?
> Above error is happen with example files(event.root, event40.root, event50.root, ...), too.
> 
> In my best regards!
> KDW



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