Skip to content

Avoid problems with FastVerticalInterpHistPdf2Base initialization#952

Merged
anigamova merged 1 commit intocms-analysis:mainfrom
guitargeek:FastVerticalInterpHistPdf2Base_ub
Jun 7, 2024
Merged

Avoid problems with FastVerticalInterpHistPdf2Base initialization#952
anigamova merged 1 commit intocms-analysis:mainfrom
guitargeek:FastVerticalInterpHistPdf2Base_ub

Conversation

@guitargeek
Copy link
Copy Markdown
Collaborator

@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
@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