-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ticl: Optimize calculation of Trackster time #46133
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-46133/41922 |
A new Pull Request was created by @felicepantaleo for master. It involves the following packages:
@Moanwar, @cmsbuild, @jfernan2, @mandrenguyen, @srimanob, @subirsarkar can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
test parameters:
|
enable profiling |
type hgcal |
please test |
+1 Size: This PR adds an extra 20KB to repository Comparison SummarySummary:
|
please test |
+1 Size: This PR adds an extra 12KB to repository Comparison SummarySummary:
|
@felicepantaleo I see timing reductions in many places involving Tracksters and HGCAL, thanks! |
+1 |
+Upgrade |
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. @mandrenguyen, @rappoccio, @antoniovilela, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
This PR optimizes the calculation of Trackster time in
RecoHGCal/TICL/plugins/TrackstersPCA.cc
by improving both code efficiency and readability.std::vector<double>
withstd::array<float, 3>
for spatial coordinates, reducing memory overhead and enhancing computational performance.project_lc_to_pca
function by directly calculating the squared distance, removing the need for extra square root operations.z
and adjusting the logic fordeltaT
to improve numerical stability.Overall, these changes result in cleaner code and potentially faster execution without altering the core functionality.
@AuroraPerego fyi