Hi Rutger,
Thanks for reporting this inconsistency. I fixed the following
functions:
TH1::ProfileX
TH1::ProfileY
TH1::ProjectionX
TH1::ProjectionY
TH1::ProjectionZ
Rene Brun
Rutger van der Eijk wrote:
>
> Hi rooters,
>
> I'm using TH1::ProfileX on a TH2D to get a profile plot. If I compare this
> profile plot with the same profile made directly (i.e. at the time
> entries in TH2D are filled) I see a slight difference in number of
> entries.
>
> I was wondering if this has to do with the under and overflow bins. Are
> they correctly taken into account? (Do they actually exist for 2D, 3D
> histograms??)
>
> I see in TH1::ProfileX
> ...
> if (firstybin < 0) firstybin = 0;
> if (lastybin > ny) lastybin = ny;
> ...
> shouldn't this be:
> if (firstybin < 0) firstybin = 0;
> if (lastybin > ny + 1) lastybin = ny + 1;
>
> Cheers,
>
> Rutger van der Eijk
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET