Re: [ROOT] scale before fit

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Sep 20 2003 - 19:01:09 MEST


Hi

You should do what is indicated in the note:

 h1->Sumw2();
 h1-Scale(...);
 h1->Fit(...);

Rene Brun

On Sun, 21 Sep 2003, [gb2312] 
Dong Zhou wrote:

> dear ROOTers:
>  
> in the html document, i find that 
>  
>  IMPORTANT NOTE: If you intend to use the errors of this histogram later, you should call Sumw2 before making this operation.
>  This is particularly important if you fit the histogram after TH1::Scale
>  
> now, i have to scale the histogram before fit it to a function, what shouldl i do? just call Sumw2( ) before Fit( )? 
> like    h1->Scale(....);
>          h1->Sumw2( );
>          h1->Fit(.....);
> ?
>  
> Thank u for ur help.
>  
> Zhou, Dong
>  
> 
> 
> 
> ---------------------------------
> Do You Yahoo!?
> 启用电邮帐号,领会雅虎通[身临其境聊电影]的动感魅力,还有网络摄像头+雅虎通收音机等你来拿



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET