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

fix: newVertex not considered in AdaptiveMultiVertexFit #2655

Merged
merged 11 commits into from
Nov 17, 2023

Conversation

felix-russo
Copy link
Contributor

@felix-russo felix-russo commented Nov 13, 2023

I found out that the fit is sometimes called with an empty vertexCollection. Upon investigation, I realized that, when we call the function addVtxToFit, we only fit all vertices that share tracks with newVertex - but not newVertex itself. If newVertex is not connected to any tracks, then we execute the fit for 0 vertices. This PR makes sure that newVertex is always fit:
image

This PR further removes the redundant fit function and renames fitImpl -> fit

@felix-russo felix-russo changed the title fix: newVertex is not part of the fit fix: newVertex not considered in AdaptiveMultiVertexFit Nov 13, 2023
@github-actions github-actions bot added Component - Core Affects the Core module Vertexing labels Nov 13, 2023
Copy link

codecov bot commented Nov 13, 2023

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (1c81427) 49.73% compared to head (4b9fd88) 49.72%.

Files Patch % Lines
...clude/Acts/Vertexing/AdaptiveMultiVertexFitter.hpp 28.57% 2 Missing and 3 partials ⚠️
...clude/Acts/Vertexing/AdaptiveMultiVertexFinder.ipp 42.85% 1 Missing and 3 partials ⚠️
...clude/Acts/Vertexing/AdaptiveMultiVertexFitter.ipp 0.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2655      +/-   ##
==========================================
- Coverage   49.73%   49.72%   -0.02%     
==========================================
  Files         474      474              
  Lines       26874    26880       +6     
  Branches    12365    12370       +5     
==========================================
  Hits        13366    13366              
- Misses       4704     4706       +2     
- Partials     8804     8808       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@felix-russo
Copy link
Contributor Author

I guess the physmon is not failing because the vertex is included eventually when more vertices are added that share tracks with it

@paulgessinger paulgessinger added this to the v31.0.0 milestone Nov 14, 2023
@kodiakhq kodiakhq bot merged commit af8a537 into acts-project:main Nov 17, 2023
49 checks passed
@acts-project-service acts-project-service added the Fails Athena tests This PR causes a failure in the Athena tests label Nov 17, 2023
@felix-russo felix-russo deleted the bug-amvfitter branch November 17, 2023 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Core Affects the Core module Fails Athena tests This PR causes a failure in the Athena tests Vertexing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants