Different Rebin for different x-range within a histogram

I have two questions,

  1. h->Rebin(); by default, scales the bin-width to double. what if I want to reduce to half of the bin width? How should I define that?
  2. I have a histo of x-range 0-10. I want to rebin in the sub-range of 0-5 and 5-10 differently. how do I define the rebin for them?

Thanks & Regards,

  1. TH1::Rebin cannot decrease bin widths.

  2. See “case 2 xbins!=0” in the TH1::Rebin method description.

Thank you, it’s working now for (2).

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.