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

Rework Muon candidate selection in few tracker ALCARECO #46574

Merged
merged 3 commits into from
Nov 4, 2024

Conversation

mmusich
Copy link
Contributor

@mmusich mmusich commented Oct 31, 2024

PR description:

This PR is a partial response to #46493.
In #46493 (comment) it was suggested to replace few of the MuonSelector (ObjectSelectorBase<SingleElementCollectionSelector<edm::View<reco::Muon>, ...> ) instances with modules that express the structure of the selection in C++ code instead, as this would allow to reduce the memory footprint in Run 3 prompt reco jobs for Muon* PDs.
This is implemented in commits 8e3de65 and 2d97abd that introduce ad-hoc classes AlignmentGoodIdMuonSelector and AlignmentRelCombIsoMuonSelector for this purpose.
Additionally in #46493 (comment) it was suggested that the duplication of selection identical modules configuration has both memory and runtime cost. This is addressed at 8e49f10 by introducing a new common sequence seqALCARECOTkAlRelCombIsoMuons that ulimately takes in input a reco::MuonCollection (with label muons) and returns a skimmed reco::MuonCollection called TkAlRelCombIsoMuonSelector which is then used to feed the rest of the selection chain.

PR validation:

runTheMatrix.py -l 1001.0,1001.2,1001.3,1001.4,1002.4

runs.

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:

N/A

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 31, 2024

cms-bot internal usage

@mmusich mmusich changed the title Rework Rework Muon candidate selection in few tracker ALCARECO Oct 31, 2024
@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @mmusich for master.

It involves the following packages:

  • Alignment/CommonAlignmentProducer (alca)
  • Calibration/TkAlCaRecoProducers (alca)

@atpathak, @cmsbuild, @consuegs, @perrotta can you please review it and eventually sign? Thanks.
@adewit, @mmusich, @pakhotin, @rsreds, @threus, @tlampen, @tocheng, @yuanchao this is something you requested to watch as well.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@mmusich
Copy link
Contributor Author

mmusich commented Oct 31, 2024

test parameters:

  • workflows = 1001.0,1001.2,1001.3,1001.4,1002.4

@mmusich
Copy link
Contributor Author

mmusich commented Oct 31, 2024

type performance-improvements

@mmusich
Copy link
Contributor Author

mmusich commented Oct 31, 2024

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 1, 2024

-1

Failed Tests: RelVals-INPUT
Size: This PR adds an extra 28KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3f8e67/42523/summary.html
COMMIT: 8e49f10
CMSSW: CMSSW_14_2_X_2024-10-31-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/46574/42523/install.sh to create a dev area with all the needed externals and cmssw changes.

  • DAS Queries: The DAS query tests failed, see the summary page for details.

RelVals-INPUT

  • 2024.0000012024.000001_RunJetMET02024D_10k/step1_dasquery.log
  • 2024.0010012024.001001_RunZeroBias2024D_10k/step1_dasquery.log
  • 2024.1000012024.100001_RunJetMET02024C_10k/step1_dasquery.log
Expand to see more relval errors ...
  • 2024.101001
  • 2024.000001
  • 2024.001001
  • 2024.100001
  • 2024.101001

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 10 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3683524
  • DQMHistoTests: Total failures: 425
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3683078
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.094 KiB( 49 files compared)
  • DQMHistoSizes: changed ( 1002.4,... ): -0.023 KiB MessageLogger/Errors
  • DQMHistoSizes: changed ( 1002.4,... ): -0.023 KiB MessageLogger/Warnings
  • Checked 221 log files, 175 edm output root files, 50 DQM output files
  • TriggerResults: found differences in 2 / 48 workflows

Copy link
Contributor

@Dr15Jones Dr15Jones left a comment

Choose a reason for hiding this comment

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

Thanks for this!

…e of the selection in C++ code

- replace in 4 ALCARECO producers separated configuration with a common block: TkAlGoodIdMuonSelector+TkAlRelCombIsoMuonSelector
@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 1, 2024

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 1, 2024

Pull request #46574 was updated. @atpathak, @cmsbuild, @consuegs, @perrotta can you please check and sign again.

@mmusich
Copy link
Contributor Author

mmusich commented Nov 1, 2024

test parameters:

  • enable_tests = threading
  • workflows_threading = 1000.0, 1001.0,1001.2,1001.3,1001.4,1002.4

@mmusich
Copy link
Contributor Author

mmusich commented Nov 1, 2024

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 1, 2024

-1

Failed Tests: RelVals
Size: This PR adds an extra 28KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3f8e67/42532/summary.html
COMMIT: b916211
CMSSW: CMSSW_14_2_X_2024-10-31-2300/el8_amd64_gcc12
Additional Tests: THREADING
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/46574/42532/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals

The relvals timed out after 4 hours.

@mmusich
Copy link
Contributor Author

mmusich commented Nov 1, 2024

@cmsbuild, please test

let's re-try, in my local checkout area I get:

1000.0_RunMinBias2011A Step0-PASSED Step1-PASSED Step2-PASSED Step3-PASSED Step4-PASSED  - time date Fri Nov  1 16:27:15 2024-date Fri Nov  1 16:22:40 2024; exit: 0 0 0 0 0
1001.0_RunMinBias2011A Step0-PASSED Step1-PASSED Step2-PASSED Step3-PASSED Step4-PASSED Step5-PASSED Step6-PASSED Step7-PASSED Step8-PASSED Step9-PASSED Step10-PASSED  - time date Fri Nov  1 16:27:59 2024-date Fri Nov  1 16:22:40 2024; exit: 0 0 0 0 0 0 0 0 0 0 0
1001.2_RunZeroBias2017F Step0-PASSED Step1-PASSED Step2-PASSED Step3-PASSED Step4-PASSED Step5-PASSED Step6-PASSED  - time date Fri Nov  1 16:28:38 2024-date Fri Nov  1 16:22:41 2024; exit: 0 0 0 0 0 0 0
1001.3_RunSingleMuon2022B Step0-PASSED Step1-PASSED Step2-PASSED Step3-PASSED  - time date Fri Nov  1 16:27:57 2024-date Fri Nov  1 16:22:41 2024; exit: 0 0 0 0
1001.4_RunDoubleMuon2022B Step0-PASSED Step1-PASSED Step2-PASSED Step3-PASSED Step4-PASSED Step5-PASSED  - time date Fri Nov  1 16:28:01 2024-date Fri Nov  1 16:22:42 2024; exit: 0 0 0 0 0 0
1002.4_RunDoubleMuon2022B Step0-PASSED Step1-PASSED Step2-PASSED  - time date Fri Nov  1 16:27:35 2024-date Fri Nov  1 16:22:42 2024; exit: 0 0 0
6 6 6 5 4 3 2 1 1 1 1 tests passed, 0 0 0 0 0 0 0 0 0 0 0 failed

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 1, 2024

+1

Size: This PR adds an extra 12KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-3f8e67/42540/summary.html
COMMIT: b916211
CMSSW: CMSSW_14_2_X_2024-11-01-1100/el8_amd64_gcc12
Additional Tests: THREADING
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/46574/42540/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially added 3 lines to the logs
  • Reco comparison results: 7 differences found in the comparisons
  • DQMHistoTests: Total files compared: 46
  • DQMHistoTests: Total histograms compared: 3569567
  • DQMHistoTests: Total failures: 520
  • DQMHistoTests: Total nulls: 1
  • DQMHistoTests: Total successes: 3569026
  • DQMHistoTests: Total skipped: 20
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.047 KiB( 45 files compared)
  • DQMHistoSizes: changed ( 1000.0 ): -0.023 KiB MessageLogger/Errors
  • DQMHistoSizes: changed ( 1000.0 ): -0.023 KiB MessageLogger/Warnings
  • Checked 201 log files, 171 edm output root files, 46 DQM output files
  • TriggerResults: found differences in 1 / 44 workflows

@mmusich mmusich marked this pull request as ready for review November 2, 2024 10:13
@perrotta
Copy link
Contributor

perrotta commented Nov 4, 2024

+alca

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 4, 2024

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. @sextonkennedy, @antoniovilela, @rappoccio, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2)

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit d08538a into cms-sw:master Nov 4, 2024
13 checks passed
@mmusich mmusich deleted the mm_dev_ali_goo_id_muon_selector branch November 4, 2024 13:29
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