DrawNormalized versus Scale()

From: Marc Escalier <escalier_at_lal.in2p3.fr>
Date: Mon, 8 Feb 2010 23:39:42 +0100


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 Mon Feb 08 2010 - 23:39:45 CET

This archive was generated by hypermail 2.2.0 : Tue Feb 09 2010 - 11:50:01 CET