I would like to create a TH2 where the binning of one axis depends on the range of the other axis.
For example, assuming an x-axis with 10 bins from 0. to 10., I would like to define a y-axis with 20 bins from 0. to 10. if x is less than 5 and 10 bins otherwise.
Is this possible? Many thanks for your help! Best regards,
thanks for your reply, but wouldn’t the y-binning then be the same for all x values? Let me rephrase my problem. Assume two histograms declared in the following way:
They differ in the y-axis bin size depending on the x-value. My question is whether it is possible to define a single TH2 histogram with these binnings?
How would this work with the constructor you suggested?