[ROOT] TChain and Merge

From: Luiz Martins Mundim Filho (Luiz.Mundim@cern.ch)
Date: Mon Aug 13 2001 - 08:33:09 MEST


Hi

    I'm trying to Merge about 100 root  files (with 2 ntuples) into 
fewer files. I'm following the Brun's advice:
root> TChain chain("h1")
root> chain.Add("fil*.root")
root> chain.Merge("outfile.root")

But most of the time, when I give the 2nd command, root answer nothing, 
that means, it doesn't read the files, so I  repeat the command and SOME 
TIMES it succeed to read them.  To give the command chain.ADD again, I 
MUST get out of root, since giving this command twice, it get a 
segmentation violation. Loot the output below.

root [0] TChain 
chain("h1")                                                   
root [1] chain.Add("wphact20cc_e206.7_c1*.root");
root [2] chain.Add("wphact20cc_e206.7_c1*.root")
(Int_t)0
root [3] chain.Add("wphact20cc_e206.7_c1*.root")

 *** Break *** segmentation violation
Root > .q

In fact, I had to kill the process since even the ".q"  did not work.

What is going on? What am I doing wrong?

I'm using the "official" version at CERN (Version   3.01/06      12 July 
2001).

Thanks

Luiz



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