Commit ebcf15c
committed
[RF][HF] Re-use any type of RooAbsArgs in ParamHistFunc::createParamSet
When connecting preprocessing functions to nuisance parameters via
`Measurement::AddPreprocessFunction`, the nuisance parameter is replaced
by a RooAbsReal that is not a RooRealVar, and the implementation of
`ParamHistFunc::createParamSet` should be able to deal with that.
So far, `createParamSet` assumed that any pre-existing argument in the
workspace with the nuisance parameter name is of type RooRealVar, which
is not valid in that case. Therefore, using preprocessing functions in
place of these parameters resulted in a segfault.
To fix this, the code is generalized to any RooAbsArg type.
Closes #12225.1 parent ca48671 commit ebcf15c
1 file changed
+9
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | 320 | | |
| 321 | + | |
324 | 322 | | |
325 | 323 | | |
326 | 324 | | |
| |||
351 | 349 | | |
352 | 350 | | |
353 | 351 | | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | 352 | | |
| 353 | + | |
358 | 354 | | |
359 | 355 | | |
360 | 356 | | |
| |||
388 | 384 | | |
389 | 385 | | |
390 | 386 | | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | 387 | | |
| 388 | + | |
395 | 389 | | |
396 | 390 | | |
397 | 391 | | |
| |||
431 | 425 | | |
432 | 426 | | |
433 | 427 | | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
438 | 434 | | |
439 | 435 | | |
440 | 436 | | |
| |||
0 commit comments