Commit 63be8d3
committed
[RF] Correctly normalize RooSimultaneous when projecting over data
Since a8ef8b0, any RooAbsPdf that makes a prediction for the expected
number of events will use this prediction for the normalization when
plotting.
This made is more meaningful to compare models with data because the
model normalization was not automatically scaled to match the data.
However, it also broke plots with projections of RooSimultaneous pdfs
over data, because the temporary RooAddPdf that is created in this case
did not use coefficients that were scaled to the actual dataset, but to
unity. Correctly normalizing to the sum of entries in the dataset fixes this
problem.
A unit test is also implemented.
Closes #20383.
(cherry picked from commit 61735d8)1 parent 7e82797 commit 63be8d3
File tree
3 files changed
+37
-3
lines changed- roofit/roofitcore
- src
- test
3 files changed
+37
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
814 | | - | |
| 813 | + | |
| 814 | + | |
815 | 815 | | |
816 | 816 | | |
817 | 817 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
507 | 509 | | |
508 | 510 | | |
509 | 511 | | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
0 commit comments