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
Remove CMS deprecation warnings from RecoBTag/PerformanceDB #36576
Remove CMS deprecation warnings from RecoBTag/PerformanceDB #36576
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36576/27531
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages:
@jpata, @cmsbuild, @clacaputo, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
NOTE: this package appears to exist solely to deliver the EventSetup data product |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2ab928/21442/summary.html Comparison SummarySummary:
|
for (auto const& n : measureName_) { | ||
if (lastName != n) { | ||
lastName = n; | ||
lastToken = esConsumes(edm::ESInputTag("", n)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there some cost from calling esConsumes
multiple times and more importantly, is there a change in logic if it's called multiple times?
- If there is no harm, then this optimization to skip is ok,
- if the logic changes, then this check seems rather weak (assuming that
measureName_
is sorted, as in the current hardcoded implementation) and some more thorough check is needed (perhaps the easiest is to make a sorted temporary)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is only a minor performance hit.
- needs more memory to store the consumes info
- each identical consumes will create an additional entry in the WaitingTaskHolder for the item which takes more memory and a small bit of time.
Mostly, this bugs me aesthetically.
//Possible algorithms: TTBARWPBTAGCSVL, TTBARWPBTAGCSVM, TTBARWPBTAGCSVT | ||
// TTBARWPBTAGJPL, TTBARWPBTAGJPM, TTBARWPBTAGJPT | ||
// TTBARWPBTAGTCHPT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
//Possible algorithms: TTBARWPBTAGCSVL, TTBARWPBTAGCSVM, TTBARWPBTAGCSVT | |
// TTBARWPBTAGJPL, TTBARWPBTAGJPM, TTBARWPBTAGJPT | |
// TTBARWPBTAGTCHPT | |
//Possible algorithms: TTBARWPBTAGCSVL, TTBARWPBTAGCSVM, TTBARWPBTAGCSVT | |
// TTBARWPBTAGJPL, TTBARWPBTAGJPM, TTBARWPBTAGJPT | |
// TTBARWPBTAGTCHPT |
this comment is lost in full; perhaps instead of recovering here, better copy this up above before filling the measureName_
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36576/27542
|
Pull request #36576 was updated. @jpata, @cmsbuild, @clacaputo, @slava77 can you please check and sign again. |
please test |
- Restored original comment - Made reduced esConsumes call algorithm more robust.
db19db4
to
48a4603
Compare
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36576/27543
|
Pull request #36576 was updated. @jpata, @cmsbuild, @clacaputo, @slava77 can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2ab928/21457/summary.html Comparison SummarySummary:
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
PR validation:
Code compiles.