Commit 727af7e
committed
[RF] Consistent minimizer defaults in
Take the default offsetting flag value from the default
`MinimizerConfig` struct, where the offsetting flag is correctly
initialized to `int doOffset = -1`:
https://github.com/root-project/root/blob/master/roofit/roofitcore/src/FitHelpers.cxx#L247
This means to not change any offset setting by default.
The problem was that the default was set to zero before, which tells the
minimizer to explicitly disable offsetting, even if the likelihood was
created with offsetting.
This fixes an issue reported on the forum:
https://root-forum.cern.ch/t/cannot-use-offset-with-rooabspdf-fitto/64293
Also, make sure that all other default config values are taken from the
default options struct for consistency.
To be backported to the previous active ROOT releases.RooAbsPdf::fitTo()
1 parent 477137c commit 727af7e
1 file changed
+8
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
424 | | - | |
| 423 | + | |
425 | 424 | | |
426 | 425 | | |
427 | 426 | | |
| |||
445 | 444 | | |
446 | 445 | | |
447 | 446 | | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
453 | 452 | | |
454 | 453 | | |
455 | 454 | | |
| |||
1115 | 1114 | | |
1116 | 1115 | | |
1117 | 1116 | | |
1118 | | - | |
1119 | | - | |
| 1117 | + | |
1120 | 1118 | | |
1121 | 1119 | | |
0 commit comments