Commit a8ef8b0
authored
[RF] Fix plotOn normalization for extended PDFs
This PR fixes an issue where the `plotOn` function incorrectly normalizes an extended PDF to the number of events in a dataset, rather than to its own predicted number of events. This behavior is misleading when the PDF's normalization is a key part of the model's prediction.
The default logic in `RooAbsPdf::plotOn` is modified to check if a PDF is extended by calling `expectedEvents()`. If it is, the function now uses the PDF's prediction for normalization; otherwise, it retains the old behavior of scaling to the data for non-extended PDFs.
Closes #18929.1 parent a10d2af commit a8ef8b0
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2145 | 2145 | | |
2146 | 2146 | | |
2147 | 2147 | | |
2148 | | - | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
2149 | 2163 | | |
2150 | 2164 | | |
2151 | 2165 | | |
| |||
0 commit comments