Re: [ROOT] concatenating root files

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Apr 26 2002 - 08:35:58 MEST


Hi Yuri,

For adding histograms from multiple files, see script
 $ROOTSYS/tutorials/hadd.C

For Trees, two options
  - Use a TChain without merging the files in one single file
  - Use a TChain and use TChain::Merge to create a new file.

Rene Brun

Yuri Gotra wrote:
> 
> Hi All,
> 
>       I'm looking for a recipe to concatenate several root files together.
> Files contain the same histograms and ntuples and were created by processing
> different input dataset files. I'd like to loop my analysis code over a single
> file. Making a single file during the processing of several input dataset
> files was not an option.
> 
> Thank you,
>            Yuri



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