x-value to bin number?

Robert Casties (casties@desy.de)
Wed, 4 Jun 1997 16:07:16 +0200 (MET DST)


Hello!

Is there a convenient method to get the bin no of a histogram from the
value to be filled in? (I thought TH1::GetBin would do that)

Do I have to do all TH1::Fill(x) does (subtracting xmin, dividing, etc)?

Is there any other way to make my own histogram contents with errors? At
the moment I'm using TH1::Fill(x,value) for the data but there's not the
like for errors.

Actually, it's not really histograms I want but something which looks the
same (plot of single equidistant values with errorbars).

Thanks for enlightenment

Robert