Re: [ROOT] histogram value problem at drawing

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Jul 18 2002 - 19:14:24 MEST


Could you
 - identify which version you are using?
 - provide a small fut running script to test your problem?

Rene Brun



On Thu, 18 Jul 2002 kmakonyi@nist.gov wrote:

> Dear Rooters,
> 
> I try to copy a part of a histogram like this:
> 
>     for(int j = 900; j < 1000; j++ ){
>       printf("in h1 = %d\n",
>        	     h1->GetBinContent( j ));
>       h1_->SetBinContent(j - 899,
> 			 h1->GetBinContent(j));
>       printf("out h1_ = %d\n",
>        	     h1_->GetBinContent( j - 899 ));
>     }
> the dumped value of the h1_ histogram is OK, but when I try to draw it the value 
> is chaged. ( for intant the tipical (real) value of my histo is around 1000, the 
> "drawn" value is 14000 ). That is problem because after these, the fitting 
> is using the "drawn" value.
> How does it works?
> k.
> 
> ps. In fact before the copiing the original histogram also shows the same 
> behaviour ... 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:00 MET