Hi,
Is there a way to add TNtuple that have the same structure (same numbers of lines and columns) to get only one TNtuple (something like TH1::Add)
thanks,
Vincent
Hi,
Is there a way to add TNtuple that have the same structure (same numbers of lines and columns) to get only one TNtuple (something like TH1::Add)
thanks,
Vincent
Use TChain::Merge
or utility $ROOTSYS/bin/hadd
Rene
Hi Rene,
I 'm not sure it’ll work for what I’d like to do.
I have a single root file filled with several TNtuple, each one having a different name (one name per physics process). I’d like to create a new TNtuple which is the sum of all the others. So I use TNtuple here as a N dimensions array and I’d like to sum every boxes of the array to get only one final array.
Thanks,
Vincent
[quote=“brun”]Use TChain::Merge
or utility $ROOTSYS/bin/hadd
Rene[/quote]
We do not have a canned solution for this.
You will need to use existing tools to gather the information (for example MakeSelector or generating a series of histograms).
Cheers,
Philippe