Saving histograms in macro .C files

Hi

I am using ROOT v 4.00/04.
I produced an histogram an saved it in macro C file. Looking at the code of the macro file a Statistics text box with n entries = 3806 and mean = 3.482 should be drawn.
However when executing the macro a statistics box with n entries = 3814 and mean = 3.982 is drawn. I don’t understand what is happening.
I put the macro file in attach.

Best regards, Pedro
iso_e_signal300.C (2.64 KB)

Replace
hsniso0->Add(h0iso,“s”);
by
hsniso0->Add(h0iso);

In the original line you force the generation of the stats box.

Please do not submit the same mail to this Forum
and rootdev.

Rene