Hi,
you can use this overload of SetBins. The full class documentation for the latest releaes of ROOT is at https://root.cern.ch/doc/v620/classTH2.html. TH2 inherits most of its methods from TH1, so you need to expand “Public member functions inherited from TH1”.
It’s really a TH1 method. The inheritance and distribution of methods in the various classes is historically weird for histograms (the v7 histograms will be saner).
It does not overload that function. That’s the point. When you look at the help of a function, the documentation lists all the classes which overload that function in the section “Reimplemented in”. As you can see TH2 does not overload the TH1 version of SetBins. So all is correct.
Oh, I see the code for it in TH1.cxx. Now I got it. Design flaw I think: to have a member function that is not intended to be used. Really weird members distribution. I suppose that some internal design required that.