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: Protection against wrong configuration of Seed finder config #2129

Merged
merged 5 commits into from
May 26, 2023

Conversation

CarloVarni
Copy link
Collaborator

In case a misconfiguration of the SeedFinderConfig happens, and the seedFilter is a nullptr, the code crashes.

This PR adds a protection against this eventuality. This happens in the toInternalUnits function, that now takes responsibility for checking the validity of its parameters.

It checks that the seedFilter is not a nullptr and that its config is already in internal units.

@CarloVarni CarloVarni added Bug Something isn't working Component - Core Affects the Core module labels May 15, 2023
@CarloVarni CarloVarni added this to the next milestone May 15, 2023
@CarloVarni CarloVarni added 🚧 WIP Work-in-progress and removed 🚧 WIP Work-in-progress labels May 15, 2023
@github-actions
Copy link

github-actions bot commented May 15, 2023

📊 Physics performance monitoring for ea16fb6

Summary
Full report
Seeding: seeded, truth estimated, orthogonal
CKF: seeded, truth smeared, truth estimated, orthogonal
IVF: seeded, truth smeared, truth estimated, orthogonal
AMVF: seeded, truth smeared, truth estimated, orthogonal
Ambiguity resolution: seeded, orthogonal
Truth tracking
Truth tracking (GSF)

Vertexing

Vertexing vs. mu
IVF seeded

IVF truth_smeared

IVF truth_estimated

IVF orthogonal

AMVF seeded

AMVF truth_smeared

AMVF truth_estimated

AMVF orthogonal

Seeding

Seeding seeded

Seeding truth_estimated

Seeding orthogonal

CKF

CKF seeded

CKF truth_smeared

CKF truth_estimated

CKF orthogonal

Ambiguity resolution

seeded

Truth tracking (Kalman Filter)

Truth tracking

Truth tracking (GSF)

Truth tracking

@codecov
Copy link

codecov bot commented May 15, 2023

Codecov Report

Merging #2129 (ea16fb6) into main (672b144) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #2129   +/-   ##
=======================================
  Coverage   49.44%   49.44%           
=======================================
  Files         436      436           
  Lines       25125    25125           
  Branches    11607    11607           
=======================================
  Hits        12424    12424           
  Misses       4467     4467           
  Partials     8234     8234           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@paulgessinger paulgessinger left a comment

Choose a reason for hiding this comment

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

Looks good to me. You were wondering if we ever want to actually configure the finder without the filter, I guess we don't? Thoughts @LuisFelipeCoelho ?

@LuisFelipeCoelho
Copy link
Member

I also don't see why we would want to configure the seed finder without the filter. In any case, we can configure the filter to keep all seeds.

@andiwand
Copy link
Contributor

looks like our tests rely on this 🤔

@CarloVarni
Copy link
Collaborator Author

ok, then I'll get a look at the failures here and fix them. It looks like indeed we have situation where the filter is not set

@CarloVarni CarloVarni force-pushed the ProtectAgainsNullSeedFilter branch from 8b3505f to 37264ec Compare May 26, 2023 07:14
@CarloVarni
Copy link
Collaborator Author

CarloVarni commented May 26, 2023

I forgot in the previous commit to propagate the changes in the SeedingAlgorithm example to this MR. Now it all works

Copy link
Contributor

@andiwand andiwand left a comment

Choose a reason for hiding this comment

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

great, thank you!

Copy link
Member

@paulgessinger paulgessinger left a comment

Choose a reason for hiding this comment

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

This whole "internal units" mechanism is a bit of a crux that we should be looking to remove. That's independent of this change though.

@kodiakhq kodiakhq bot merged commit 5ba3b8d into acts-project:main May 26, 2023
49 checks passed
@CarloVarni CarloVarni deleted the ProtectAgainsNullSeedFilter branch May 26, 2023 13:13
@paulgessinger paulgessinger modified the milestones: next, v27.0.0 Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Component - Core Affects the Core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants