Re: [ROOT] There is any tools to merge root file?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Dec 18 2002 - 17:54:33 MET


Hi Gong,

Run h2root on each of your PAW files, then make a TChain
and use TChain::Merge to create one single file
  h2root file1.hbook
  h2root file2.hbook
  ...
  h2root filen.hbook

root > TChain ch("name of your ntuple");
root > ch.Add("file*.root");
root > ch.Merge("bigfile.root");

Rene Brun

On Wed, 18 Dec 2002, Datao Gong wrote:

> Hi,
> I have a few ntuple files which can not be merged by paw because
> the sum of these file large than 260M. There is any tools in root
> to do this work? Or i need to write some scripts?
> Thank you
> 
> Gong Datao
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:24 MET