[ROOT] Superimpose histograms

From: Vu Anh Tuan (vuanh@lal.in2p3.fr)
Date: Wed Jul 31 2002 - 10:22:34 MEST


Hi,

I've got a small question.

I'm currently using root v3_02_07. I want to compare two histograms, say
Z mass from data and from MC, therefore I need to superimpose
them: z_data and z_mc. They need not to have the same entries
certainly. I thought normally I would have to scale one histogram to the
other using the function Scale() or smth like this. But as I was a
little bit lazy, I did first

z_mc.Draw(), then
z_data.SetLineColor(kRed) and finally
z_data.Draw("E1same")

in thinking of refining them later (I got about 60 histos to draw). But
surprisingly the plot I see appears to be rescaled already as I wanted
to be, was not supposed to do.

Are things actually implemented like this or my pleasant unexpectation
turns out to be too early?

Thanks,

Tuan



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:02 MET