Merging Histograms with different names

From: Deepak Kar <dkar_at_phys.ufl.edu>
Date: Tue, 1 Apr 2008 16:22:27 -0400


Hi,

I dont know if I am missing something obvious, but this is what I have.

hist1.root with just one histogram in it, named hist1 hist2.root with just one histogram in it, named hist2 Neither have any directory structure.

I somehow want hist1 and hist2 merged. Now when I try the usual hadd.C, it just gives me back whichever I put in first, hist1 or hist2, not the combined one.
And I cant certainly do hist1->Add(hist2); since that does not care for the relative weights, which are much different - otherwise I could have just did that and divided by 2.

Can it be done?

Thanks a lot,
Deepak

-- 
Deepak Kar
Graduate Student of Physics
University of Florida
Homepage - www.phys.ufl.edu/~dkar
Received on Tue Apr 01 2008 - 22:22:33 CEST

This archive was generated by hypermail 2.2.0 : Wed Apr 02 2008 - 17:50:01 CEST