Re: TH1::GetNormFactor() what's for?

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Mon, 4 Feb 2008 11:45:53 +0100


TH1::GetNormFactor returns what was set via TH1::SetNormFactor(double factor).
This normalization factor is stored as a TH1 data member. When set, this factor is used to scale
automatically the picture at drawing time without modifying the histogram contents.
On the other hand, when calling TH1::Scale, the bin contents are modified accordingly and there is
no way to remember what was the argument to TH1::Scale

Rene Brun

Antonio Bulgheroni wrote:
> Dear ROOTers,
>
> In these days I'm playing with normalized histograms and I was
> surprised by the behavior of GetNormFactor. The documentation is not
> very useful (sigh!) and I don't understand what is for. I though it
> was returning the value used to scale the bin contents, but I can't
> get any numbers different from 0.
>
> Attached an example.
>
> Thanks for the clarification!
>
> Antonio
>
> --
> Antonio Bulgheroni, PhD
>
> Computers have a lot in common with air conditioners:
> Once you open WINDOWS, they stop working properly.
Received on Mon Feb 04 2008 - 11:42:57 CET

This archive was generated by hypermail 2.2.0 : Mon Feb 04 2008 - 11:50:01 CET