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_1 backport: Fix numeric issues in PFCand scaling, add some debug output #41608

Merged
merged 1 commit into from May 16, 2023

Conversation

kdlong
Copy link
Contributor

@kdlong kdlong commented May 10, 2023

PR description:

Fix candidate scaling in cases where momentum is a huge number, where the mass-aware scaling hits numeric issues. The fix is simple, just calculate E in a way without ratios involved. This should be a fix for #41397

PR validation:

Checked that the crash and nan candidate are removed. The mass scaling works properly now.

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:

Backport of #41550

Undo new line modification

Remove nan check in pflinker

Remove nan check from rescale
@cmsbuild
Copy link
Contributor

cmsbuild commented May 10, 2023

A new Pull Request was created by @kdlong (Kenneth Long) for CMSSW_13_1_X.

It involves the following packages:

  • DataFormats/ParticleFlowCandidate (reconstruction)
  • RecoParticleFlow/PFProducer (reconstruction)

@cmsbuild, @mandrenguyen, @clacaputo can you please review it and eventually sign? Thanks.
@mmarionncern, @rovere, @lgray, @missirol, @hatakeyamak, @seemasharmafnal 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

@clacaputo
Copy link
Contributor

please test

@mandrenguyen
Copy link
Contributor

backport of #41550

@mandrenguyen
Copy link
Contributor

type pf

@cmsbuild cmsbuild added the pf label May 10, 2023
@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-5921aa/32541/summary.html
COMMIT: f259152
CMSSW: CMSSW_13_1_X_2023-05-10-1200/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/41608/32541/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • You potentially removed 13 lines from the logs
  • Reco comparison results: 24 differences found in the comparisons
  • DQMHistoTests: Total files compared: 48
  • DQMHistoTests: Total histograms compared: 3460836
  • DQMHistoTests: Total failures: 51
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3460763
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 47 files compared)
  • Checked 207 log files, 159 edm output root files, 48 DQM output files
  • TriggerResults: no differences found

@mandrenguyen
Copy link
Contributor

+1
@perrotta @rappoccio
This is a more proper fix for the ak4PFJets crash than was done in #41473.
I leave it for you to judge whether we should merge this into 13_1_X and 13_0_X, given that prompt reco is running fine now.

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_13_1_X IBs (tests are also fine) and once validation in the development release cycle CMSSW_13_2_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)

@kdlong
Copy link
Contributor Author

kdlong commented May 15, 2023

Thanks @mandrenguyen. My feeling is that it ideally would be back ported. It's quite a corner case that this happens (really large momentum+uncertainty track matched to much smaller calo energy), but when it does happen, the proper averaging and scaling gives the sensible kinematics which is preferable to just skipping them.

@perrotta
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 579a073 into cms-sw:CMSSW_13_1_X May 16, 2023
10 checks passed
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

5 participants