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

Remove CMS deprecation warnings from RecoBTag/PerformanceDB #36576

Merged
merged 2 commits into from Dec 26, 2021

Conversation

Dr15Jones
Copy link
Contributor

PR description:

  • changed legacy module types to thread-friendly types
  • added esConsumes

PR validation:

Code compiles.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36576/27531

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones (Chris Jones) for master.

It involves the following packages:

  • RecoBTag/PerformanceDB (reconstruction)

@jpata, @cmsbuild, @clacaputo, @slava77 can you please review it and eventually sign? Thanks.
@JyothsnaKomaragiri, @emilbols, @demuller, @andrzejnovak, @AlexDeMoor this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@Dr15Jones
Copy link
Contributor Author

please test

@Dr15Jones
Copy link
Contributor Author

NOTE: this package appears to exist solely to deliver the EventSetup data product BtagPerformance which is not used anywhere else in CMSSW. It appears to me like this whole package could be removed.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2ab928/21442/summary.html
COMMIT: 62b85c8
CMSSW: CMSSW_12_3_X_2021-12-21-2300/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36576/21442/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 43
  • DQMHistoTests: Total histograms compared: 3461692
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3461670
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 42 files compared)
  • Checked 181 log files, 42 edm output root files, 43 DQM output files
  • TriggerResults: no differences found

for (auto const& n : measureName_) {
if (lastName != n) {
lastName = n;
lastToken = esConsumes(edm::ESInputTag("", n));
Copy link
Contributor

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)

Copy link
Contributor Author

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.

Comment on lines -101 to -103
//Possible algorithms: TTBARWPBTAGCSVL, TTBARWPBTAGCSVM, TTBARWPBTAGCSVT
// TTBARWPBTAGJPL, TTBARWPBTAGJPM, TTBARWPBTAGJPT
// TTBARWPBTAGTCHPT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
//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_

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36576/27542

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

Pull request #36576 was updated. @jpata, @cmsbuild, @clacaputo, @slava77 can you please check and sign again.

@Dr15Jones
Copy link
Contributor Author

please test

- Restored original comment
- Made reduced esConsumes call algorithm more robust.
@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-36576/27543

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

Pull request #36576 was updated. @jpata, @cmsbuild, @clacaputo, @slava77 can you please check and sign again.

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2ab928/21457/summary.html
COMMIT: 48a4603
CMSSW: CMSSW_12_3_X_2021-12-23-1100/slc7_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/36576/21457/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 43
  • DQMHistoTests: Total histograms compared: 3461692
  • DQMHistoTests: Total failures: 0
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3461670
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 42 files compared)
  • Checked 181 log files, 42 edm output root files, 43 DQM output files
  • TriggerResults: no differences found

@slava77
Copy link
Contributor

slava77 commented Dec 24, 2021

+reconstruction

for #36576 48a4603

  • code changes are technical, in line with the PR description and the follow up review. IIUC, most of the code is not exercised in the PR tests.
  • jenkins tests pass

@cmsbuild
Copy link
Contributor

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)

@qliphy
Copy link
Contributor

qliphy commented Dec 26, 2021

+1

@cmsbuild cmsbuild merged commit 8368caf into cms-sw:master Dec 26, 2021
@Dr15Jones Dr15Jones deleted the deprecated_RecoBTagPerformanceDB branch January 6, 2022 16:58
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.

None yet

4 participants