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

[13.0.X] Modernize / optimize DisappearingMuonsSkimming #41311

Conversation

mmusich
Copy link
Contributor

@mmusich mmusich commented Apr 11, 2023

backport of #41225

PR description:

I noticed that the code introduced in #40666 could be optimized in a few places, mostly:

  • do not use track matching in dR / dPt when direct comparison of track references is available
  • use range-based loops
  • modernize access to event collections
  • avoid repeated calculations
  • avoid code duplication
  • use deltaR2 in lieu of deltaR

I propose these optimizations here, as well as a test configuration that I have been using to make sure the update code results in exactly the same output as the old one.

PR validation:

Run the Configuration/Skimming/test/test_DisMuon_cfg.py file introduced here in a vanilla CMSSW_13_1_X_2023-03-27-1100 release and in this branch and checked that the exact same events are selected.

If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:

Verbatim backport of #41225, as request in #41225 (comment)

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 11, 2023

A new Pull Request was created by @mmusich (Marco Musich) for CMSSW_13_0_X.

It involves the following packages:

  • Configuration/Skimming (pdmv)

@cmsbuild, @bbilin, @sunilUIET, @kskovpen can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @missirol, @fabiocos, @youyingli this is something you requested to watch as well.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@mmusich
Copy link
Contributor Author

mmusich commented Apr 11, 2023

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-90a94d/31902/summary.html
COMMIT: 559f2c2
CMSSW: CMSSW_13_0_X_2023-04-10-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/41311/31902/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 5 lines from the logs
  • Reco comparison results: 12 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3553952
  • DQMHistoTests: Total failures: 9
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3553921
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 213 log files, 164 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@youyingli
Copy link
Contributor

@kskovpen, could you please sign?

@kskovpen
Copy link
Contributor

+pdmv

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_13_0_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_13_1_X is complete. This pull request will now be reviewed by the release team before it's merged. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@perrotta
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit f3e32da into cms-sw:CMSSW_13_0_X Apr 13, 2023
@mmusich mmusich deleted the modernize_DisappearingMuonsSkimming_13_0_X branch April 13, 2023 11:52
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.

5 participants