Home | News | Documentation | Download

Merge two histograms in one

Hello, dear ROOT users hope you are doing great!
I wanna merge Compton photons and electrons to reproduce that plot in paper but don’t know how to do it. I am using ROOT 6.18.04, Geant4.10.06 in Ubuntu. Any kind of help meant me a lot.
Thanks for your time and consideration.

There is several ways: you can add the two histograms. You will then get a new one. You can also group them using THStack, is that case the two histograms are drawn together.