Hi,
To normalize histogram use TH1::Scale
. For example, to normalise such that the sum of all bins is equal to 1, do:
histogram->Scale(1./histogram->Integral() );
See also Normalize a histogram
Hi,
To normalize histogram use TH1::Scale
. For example, to normalise such that the sum of all bins is equal to 1, do:
histogram->Scale(1./histogram->Integral() );
See also Normalize a histogram