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

Fixes for vertex fits in the muon system #40479

Merged
merged 4 commits into from Jan 20, 2023

Conversation

steggema
Copy link
Contributor

PR description:

Problem addressed: In EXO long-lived analyses, it was observed that using CMSSW vertex fitting code to reconstruct the decay vertex of resonances decaying beyond around 300 cm had much worse efficiency than for lower values, and the covariance matrix entries remained at their default values.

This was identified as coming from an issue in the fitting code when the sign of the magnetic field switches sign between two extrapolated track states. A report given in the context of the related Muon POG studies can be found here: https://indico.cern.ch/event/1220371/#6-dsa-vertex-inefficiency-stud
Another report will be given at a tracking POG meeting: https://indico.cern.ch/event/1232392/

The PR also includes a minimal change to the SequentialVertexFitter such that user code can update the boundaries in which the fit is considered valid. Up to now, users were updating these hard-coded values manually. We leave more involved updates (like taking the default values from a database or making it configurable at the EDProducer level) to future studies.

Changes to output: No changes to outputs are expected since this PR only affects the special use case of searches for long-lived particles using the CMSSW vertex fitting code to reconstruct secondary vertices outside of the inner tracker.

Other PRs: There is no interference with other PRs that we are aware of.

PR validation:

The proposed fixes lead to a large increase of efficiency for vertex fits beyond around 300 cm, and also to reasonable values of the covariance matrix entries, as reported in the slides above.

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:

Not a backport.

@annamasce @jalimena @aescalante

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40479/33653

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @steggema (Jan Steggemann) for master.

It involves the following packages:

  • RecoVertex/KinematicFitPrimitives (reconstruction)
  • RecoVertex/VertexTools (reconstruction)

@cmsbuild, @mandrenguyen, @clacaputo can you please review it and eventually sign? Thanks.
@VourMa, @GiacomoSguazzoni, @JanFSchulte, @rovere, @VinInn, @missirol, @mmusich, @mtosi, @dgulhan 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

mmusich commented Jan 11, 2023

type tracking

@mmusich
Copy link
Contributor

mmusich commented Jan 11, 2023

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2876aa/29911/summary.html
COMMIT: 4d2f049
CMSSW: CMSSW_13_0_X_2023-01-11-1100/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/40479/29911/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

There are some workflows for which there are errors in the baseline:
140.01 step 3
140.03 step 3
The results for the comparisons for these workflows could be incomplete
This means most likely that the IB is having errors in the relvals.The error does NOT come from this pull request

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 5 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3555538
  • DQMHistoTests: Total failures: 3
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3555513
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 211 log files, 162 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@mandrenguyen
Copy link
Contributor

assign tracking-pog
A priori looks reasonable, but let's see if anything comes up in the tracking POG presentation on Monday.

@cmsbuild
Copy link
Contributor

New categories assigned: tracking-pog

@slava77,@mmusich you have been requested to review this Pull request/Issue and eventually sign? Thanks

@@ -226,6 +242,9 @@ class SequentialVertexFitter : public VertexFitter<N> {
float theMaxShift;
int theMaxStep;

float trackerBoundsRadius{112.};
Copy link
Contributor

Choose a reason for hiding this comment

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

if you don't plan to make it configurable (as per PR description), at least preserve the original comment about having to take it from elsewhere.

Copy link
Contributor

Choose a reason for hiding this comment

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

addressed at 170b193

@mmusich
Copy link
Contributor

mmusich commented Jan 19, 2023

+1

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40479/33805

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

Pull request #40479 was updated. @mandrenguyen, @clacaputo can you please check and sign again.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-2876aa/30075/summary.html
COMMIT: 170b193
CMSSW: CMSSW_13_0_X_2023-01-18-2300/el8_amd64_gcc11
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/40479/30075/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: 2 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3555479
  • DQMHistoTests: Total failures: 6
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3555451
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 211 log files, 162 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

@mandrenguyen
Copy link
Contributor

+reconstruction
No changes to comparisons, but this addresses a rare case, as explained in the PR description.
Code changes are in line with description.

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

@perrotta
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 9d38767 into cms-sw:master Jan 20, 2023
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