Re: [ROOT] adding ntuples

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jan 04 2002 - 15:51:16 MET


Hi Emily,

Use a TChain. For example, if you have produced 3 files
file1.root,file2.root,file3.root containing each the ntuple "T"
do
  TChain chain("T");
  chain.Add("file1.root");
  chain.Add("file2.root");
  chain.Add("file3.root");

  chain.Draw("some variable"); etc like for a TTree

For more info, see the Users Guide.

Rene Brun


On Fri, 4 Jan 2002, Emily Nurse wrote:

> Hello,
> I am just wandering how to add the information from two ntuples. I have
> had to run my Monte Carlo a few times with different random number seeds
> as I have too much data to store on one ntuple and am having some
> difficulties in getting all the information back together.
> Any tips?
> Cheers,
> Emily Nurse.
> 



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