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

perf: CKF measurement selector runs after track state creation #3081

Open
andiwand opened this issue Apr 5, 2024 · 3 comments
Open

perf: CKF measurement selector runs after track state creation #3081

andiwand opened this issue Apr 5, 2024 · 3 comments
Labels

Comments

@andiwand
Copy link
Contributor

andiwand commented Apr 5, 2024

// Create trackstates for all source links (will be filtered later)
// Results are stored in result => no return value
createSourceLinkTrackStates(state.geoContext, result, boundState,
prevTip, slBegin, slEnd);

After Acts-Athena track finding performance discussions I wondered if this might be one of the spots in our CKF where we loose CPU. For surfaces with tons of clusters we would create track states for each of them and only select the cluster afterwards.

I suppose this is done to get the calibration into place and prepare everything for the selection but I wonder if this is a reasonable overhead.

Apart from that we wondered if the calibration is strictly necessary for the selection or if we could have a loose cut without calibration and then a hard cut with calibration.

@andiwand andiwand changed the title perf: CKF measurement selector run after track state creation perf: CKF measurement selector runs after track state creation Apr 5, 2024
@paulgessinger
Copy link
Member

paulgessinger commented Apr 5, 2024

The original idea was definitely to have the calibration done, but clearly it's not obvious that this is strictly necessary.

OTOH, the CKF reuses a single buffer for these track states, so does not need to allocate every time.

Finally, even if we smooth after the fact, that's not necessarily a complete refit, i.e. we can technically reuse at least part of the calculation that the CKF did, including calibration.

@andiwand
Copy link
Contributor Author

andiwand commented Apr 5, 2024

Right I think this ties into the discussion of what should be compared. Since our current implementation does a complete fit we should compare it to more than just the finding step of Athena. But at this point it is not clear if the output is comparable.

Copy link

github-actions bot commented May 5, 2024

This issue/PR has been automatically marked as stale because it has not had recent activity. The stale label will be removed if any interaction occurs.

@github-actions github-actions bot added the Stale label May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants