[ROOT] histogram value problem at drawing

From: kmakonyi@nist.gov
Date: Thu Jul 18 2002 - 18:38:56 MEST


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