Hello Marc,
Scale(Double_t c1 = 1, Option_t* option = "") this = c1*this
DrawNormalized(Option_t* option = "", Double_t norm = 1) The contents of the histogram copy are scaled such that the new sum of weights (excluding under and overflow) is equal to norm.
cheers,
John
On Mon, 2010-02-08 at 23:39 +0100, Marc Escalier wrote:
> Dear roottalkers,
>
> a colleague of mine observed the following behaviour (i checked to
> observe the same )
>
> let's consider a TH1 myhisto_for_normalisation
> and a TH1 myhisto_to_renormalize
>
> ==>
>
> myhisto_to_renormalize->Scale(myhisto_for_normalisation->GetEntries()/myhisto_to_renormalize->GetEntries());
> myhisto_to_renormalize->Draw();
>
> doesn't gives exactly the same as :
>
> myhisto_to_renormalize->DrawNormalized("",myhisto_for_normalisation->GetEntries()/myhisto_to_renormalize->GetEntries());
>
> Would you have a idea why ?
>
> (i don't have a minimal code available, because it would need to provide
> a root file, but just believe me on on the observation : no cheat from
> me)
>
> the root used is :
> root 5.24/00
>
> thanks
>
Received on Tue Feb 09 2010 - 05:52:39 CET
This archive was generated by hypermail 2.2.0 : Tue Feb 09 2010 - 17:50:01 CET