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

Avoid problems with FastVerticalInterpHistPdf2Base initialization #952

Merged

Conversation

guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Apr 19, 2024

The _sentry is already filled when calling evaluate(), so no need to do that in the copy constructor:
https://github.com/cms-analysis/HiggsAnalysis-CombinedLimit/blob/main/src/VerticalInterpHistPdf.cc#L895

Doing so can actually leading to redundant calls to _sentry.addVars(_coefList), resulting in the problem reported here:
#940 (comment)

[#0] ERROR:InputArguments -- RooArgSet::checkForDup: ERROR argument with name CMS_vhbb_stats_TT_ZmmLoose7TeV is already in this set

FYI @kcormi

The `_sentry` is already filled when calling `evaluate()`, so no need to
do that in the copy constructor. Doing so can actually leading to
redundant calls to `_sentry.addVars(_coefList)`, resulting in the
problem reported here:
cms-analysis#940 (comment)
```
[#0] ERROR:InputArguments -- RooArgSet::checkForDup: ERROR argument with name CMS_vhbb_stats_TT_ZmmLoose7TeV is already in this set
```
@guitargeek guitargeek force-pushed the FastVerticalInterpHistPdf2Base_ub branch from 6fb45fe to 6d80723 Compare April 23, 2024 10:16
@guitargeek guitargeek changed the title [RF] Avoid problems with FastVerticalInterpHistPdf2Base initialization Avoid problems with FastVerticalInterpHistPdf2Base initialization Apr 23, 2024
@anigamova anigamova merged commit 3b3c701 into cms-analysis:main Jun 7, 2024
11 checks passed
@guitargeek guitargeek deleted the FastVerticalInterpHistPdf2Base_ub branch June 7, 2024 15:32
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.

2 participants