Re: [ROOT] hxi, etc

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Oct 11 2000 - 15:48:33 MEST


Hi Peter,
yes, look at the TAxis class.
If you have, eg, a 2-D histogram TH2F *h2,
you can get a pointer to the x axis object via TAxis *xaxis = h2->GetXaxis();
and the y axis via TAxis *yaxis = h2->GetYaxis();
then, do
 xaxis->GetBinCenter(bin) same as hix
 xaxis->GetBinLowEdge(bin)
 xaxis->FindBin(double x) same as hxi

and many more functions.

Rene Brun


Peter H Fisher wrote:
> 
> Hi Rooters,
> 
> Is there an equivlaent to hix, hxi, etc. for converting histogram channel
> to value and vice versa?
> 
> Peter
> 
> Peter Fisher                                   Office 617-253-8561
> Associate Professor of Physics                 Fax    617-253-4100
> 44-118 MIT                                     email  fisherp@mit.edu
> Cambridge, MA, 02139



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:35 MET