Yes it is correct these functions are missing. I am not sure however if it is really important to have them, since there exists the class constructor for doing this.
What is your reason to use TH1::SetBins instead of re-create a new histogram ?
If I recreate the histogram than I loose the particular address that the user has for a histogram. In more detail, I have a class (lets call it AnalysisClass) that provides some histograms which are updated from a data source. The user simply asks for the pointer and can plot and do as they please with it, if the source data changes then the histogram is updated. The AnalysisClass has an option to update the binning of an axis and the the histogram is reset and refilled from the data source.
At the moment I am using the array signature and simply creating two vectors of bins, one is simply a linear binning, while the other has custom bin edges.
In addition, to the use case above, I think it is strange to provide different signatures for the constructor and TH1::SetBins. Although, I’ve been using ROOT for many years now and this is the first time I’ve run into the issue.
I understand your use case now. Yes the method can be added then to be consistent with the constructor.
I would prefer to have them in TH2 and not TH1 since these are valid only for 2d histograms. I hope this is not a problem for you
I agree with you, about adding them to TH2. I just listed them in TH1 as that is where they all live now. As I understand it, most of the histogram methods for any dimension live in TH1. Thanks for adding the additional methods.