Stacking Histos with different Y-axis limits

Dear ROOT Experts,

I have several root files including TH1 histograms. I am adding multiple histograms in one canvas, but I am facing a problem each histo has different limits for y-axis (representing number of events) some are large hundreds & the other are < 1, so I am getting the added histos shape not clear at all. How could I do this properly to get a clear shape for all histos I added.

I have uploded the macro I used and an e.g as png

Thanks alot,
Aya

stack_histos.C (1.9 KB)

THStack

Note also that, given the huge range difference between the red histogram and the green and blue ones, you might need (in addition to THStack) to turn the Y axis into log scale in order to see the red histogram.

Thanks a lot!

Aya