TH1::ProfileX

From: Rutger van der Eijk (r36@nikhef.nl)
Date: Wed Nov 24 1999 - 13:51:31 MET


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