[ROOT] Re: A histogram is not a tree or how do we add?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Feb 15 2002 - 09:30:12 MET


Hi Arthur,

We provide a macro in $ROOTSYS/tutorials/hadd.C to add histograms
from a set of files.

Rene Brun

Arthur E. Snyder wrote:
> 
> Rene et al.,
> 
> Is there some method for adding many histograms that are in many different
> root files?
> 
> I have to break my analysis jobs up, so I end up with a set of histograms
> from each job which I wish to recombine in the end.
> 
> For the n-tuple that's also produced I use TChain, but since a histograms
> is not a tree this doesn't work for histograms.
> 
> Is the best method just to generate a macro that will add the histograms
> by brute force?
> 
> Arthur



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