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

feat: skip unnecessary iterations in seed filter if SPs are sorted by curvature #1672

Merged
merged 18 commits into from
Nov 22, 2022

Conversation

LuisFelipeCoelho
Copy link
Member

@LuisFelipeCoelho LuisFelipeCoelho commented Nov 11, 2022

This is a small change to avoid unnecessary iteration in the seed filter based on the sorting of the outer SPs.
The seeding performance is the same but slightly faster.

@LuisFelipeCoelho LuisFelipeCoelho added Component - Core Affects the Core module Improvement Changes to an existing feature 🚧 WIP Work-in-progress Impact - Minor Nuissance bug and/or affects only a single module labels Nov 11, 2022
@LuisFelipeCoelho LuisFelipeCoelho added this to the next milestone Nov 11, 2022
@codecov
Copy link

codecov bot commented Nov 11, 2022

Codecov Report

Merging #1672 (18d74bf) into main (3898a7f) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1672      +/-   ##
==========================================
- Coverage   48.98%   48.96%   -0.02%     
==========================================
  Files         397      397              
  Lines       21497    21505       +8     
  Branches     9801     9802       +1     
==========================================
  Hits        10530    10530              
- Misses       4171     4179       +8     
  Partials     6796     6796              
Impacted Files Coverage Δ
Core/include/Acts/Seeding/SeedFilter.ipp 0.00% <0.00%> (ø)

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

@github-actions
Copy link

github-actions bot commented Nov 11, 2022

📊 Physics performance monitoring for 18d74bf

🟥 ERROR The result has missing elements!
This is likely a physmon job failure

Full report
CKF: seeded, truth smeared, truth estimated, orthogonal
IVF: 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

Seeding ❌

Seeding seeded

❌ Seeding truth_smeared

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

@LuisFelipeCoelho LuisFelipeCoelho marked this pull request as ready for review November 14, 2022 14:07
@LuisFelipeCoelho LuisFelipeCoelho removed the 🚧 WIP Work-in-progress label Nov 17, 2022
Copy link
Contributor

@tboldagh tboldagh left a comment

Choose a reason for hiding this comment

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

The change looks alright.
Just had few suggestions that could improve understanding the code by others.
I would like to make a general comment. As of now the function has 200+ lines of quite involved logic.
It may help to make it easier to follow if it could be partitioned in a few smaller functions with meaningful names.

Core/include/Acts/Seeding/SeedFilter.ipp Outdated Show resolved Hide resolved
Core/include/Acts/Seeding/SeedFilter.ipp Show resolved Hide resolved
Core/include/Acts/Seeding/SeedFilter.ipp Outdated Show resolved Hide resolved
Core/include/Acts/Seeding/SeedFilter.ipp Show resolved Hide resolved
@LuisFelipeCoelho
Copy link
Member Author

LuisFelipeCoelho commented Nov 18, 2022

I tested this with 500 ttbar events with PU=200 in standalone and it seems to be slightly faster FYI: @paulgessinger
ITkSeeding_ttbar_mu200_PPPtime

Copy link
Contributor

@tboldagh tboldagh left a comment

Choose a reason for hiding this comment

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

These changes look good to me.

@kodiakhq kodiakhq bot merged commit 75d8e2b into acts-project:main Nov 22, 2022
@LuisFelipeCoelho LuisFelipeCoelho deleted the filter-skip-sp branch November 22, 2022 12:31
@paulgessinger paulgessinger modified the milestones: next, v22.0.0 Dec 21, 2022
CarloVarni pushed a commit to CarloVarni/acts that referenced this pull request Dec 22, 2022
… curvature (acts-project#1672)

This is a small change to avoid unnecessary iteration in the seed filter based on the sorting of the outer SPs.
The seeding performance is the same but slightly faster.
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 Impact - Minor Nuissance bug and/or affects only a single module Improvement Changes to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants