Re: [ROOT] Merging files

From: Dennis C. Arrogancia (dennis@physics.msuiit.edu.ph)
Date: Thu Dec 20 2001 - 04:21:58 MET


Dear Rooters,


I have a little problem regarding merging files containig a tree. I tried
using the code below and it works fine in my case.


  TChain ch("T");
  ch.Add("file1.root");
  ch.Add("file2.root");
  ch.Add("file3.root");
  ch.Merge("big.root");


Now, my problem is how can i merge these three files if each of them
contains two or more trees? Say file1.root contains trees such as
"T1","T2", and "T3". Similarly for file2.root and file3.root, they also
contain the same number of trees.



Dennis



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