Function to calculate bin number from entry

Hello ,

   Quite a simple question here ! Is there already a function in TH1 to

calculate which bin I’m in from the value on the x-axis ? I had a look but
couldn’t spot one,

                                               Cheers,
                                                    Kyle.
TH1::FindBin(Double_t x, Double_t y = 0, Double_t z = 0)

Thankyou,
thought there had to be something to do this !
Kyle.