Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RF][HF] Re-use any type of RooAbsArgs in ParamHistFunc::createParamSet #17654

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

guitargeek
Copy link
Contributor

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.

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 root-project#12225.
Copy link

github-actions bot commented Feb 7, 2025

Test Results

    18 files      18 suites   4d 17h 55m 26s ⏱️
 2 690 tests  2 688 ✅ 0 💤 2 ❌
46 722 runs  46 720 ✅ 0 💤 2 ❌

For more details on these failures, see this check.

Results for commit aa36505.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RF] Allowing to use AddPreprocessFunction for shape factors in HistFactory
1 participant