Re: TH1 Basic (and old) questions

From: Pasha Murat (murat@cdfsga.fnal.gov)
Date: Tue Nov 04 1997 - 19:05:25 MET


 > > I would prefer TH1::GetIntegral(binx1,binx2) and same for 2-D.
 > > Otherwise if xmin,xmax do not coincide with the lower/upper limits
 > > of a bin, do you expect this function to compute an approximation
 > > for the integral in the bins at the edge, or do you simply want
 > > to compute the bin number where xmin and xmax  (bin1,bin2)correspond
 > > and return the integral as the suim of bin contents from bin1 to bin2
 > > included?
 > 
 > Agree. TH1::GetIntegral(bin1,bin2) would be nice enough.
 > 
	Hello,

	histogram (by definition) knows only about bins and bin boundaries
	and doesn't know anything about what's going on within the bin. 
	So TH1::Draw(bin1,bin2) and TH1::GetIntegral(bin1,bin2) seem to be

a) appropriate 
b) suifficient. 

	One always can change binning if he needs. 
	On the contrary it doesn't seem to be a lot of sense in the result 
	of integration over 1/3 of the histogram bin, for example.

							Pasha



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:22 MET