Hi Harufumi, TH1::SetBinContent is incrementing the number of entries. In your case you should add the following statement before drawing h2: h2->SetEntries(h->GetEntries()); Rene Brun On Wed, 11 Jun 2003, Harufumi Tsuchiya wrote: > > Hello ROOTers, > > I found odd behevior of histogram with respect to stat box. > > I attached sample macro with this e-mail(histtest.cpp). > After running the macro, please look entries of two histograms in stat box. > Two hisograms must have the same entries since one histogram is clone of > the other one, I think. > But, the entries of the clone histogram is added only by number of bin. > (<entries of clone> = <entries of original> + <number of bin of histogram>). > > Is this valid feature ? > > I use ROOT v 3.05/05 (CVS update (May 9, 2003)) on IRIX65 with gcc 2.95.2. > > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET