How to merge certain histograms within the same root file?

I have a root file containing 10 histogram [say bin as 0-5,5-10…55-60], i want to merge only 4 histogram out of them [say bin as 0-5,5-10,10-15.15-20]

How to do that?

Thanx in advance


You can use TH1::Merge(list) where in the list you add only the histogram you want to merge


@moneta and for other histograms should i write it separately or in the same program

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.