Draw 2 histograms on the same plot

Hi,

I have two histograms, which are already in (TH2F)h1 & (TH2F)h2; I want to plot them in the same graph in different color. What shall I do? Could you show me some example?

Thanks

Search for the option “SAME” in the THistPainter class description (and examples therein).