Commit c495d62
authored
[THRatio] fix update of histograms with bin labels (#2449)
A direct copy of the axis objects from the numerator to the ratio histograms,
that was introduced in a recent commit, breaks the preservation of the
bin labels that are eventually set in the ratio histogram.
The code in this commit replaces the copy with an explicit update of the
number and limits of the bins, such that it works also if the numerator
is filled with `TH1::kCanRebin` set, and therefore the axis range can
change after the histogram creation.1 parent 69c7893 commit c495d62
2 files changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
222 | 226 | | |
223 | 227 | | |
224 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
282 | 290 | | |
283 | 291 | | |
284 | 292 | | |
| |||
0 commit comments