Normalising a 2D Histogram

Hello
I want to normalize a 2D histogram. I am confused that where should I put these statements

Double_t scale = 1./(h->Integral());
h->Scale(scale);

After or before : h-> Write();

After or before : h-> Draw();

I am not using Tcanvas.

Thank you

Hi,

if you want to draw and write a normalised histogram, before.

cheers,
D

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.