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

Avoid unnecessary cotan and division operations #388

Merged
merged 3 commits into from
Nov 28, 2021
Merged

Conversation

mmasciov
Copy link
Collaborator

PR description

As per title, avoid unnecessary expensive operations.

PR validation

TTbarPU50: https://mmasciovecchio.web.cern.ch/BTV_Nov2021/MTV_extraspeedup_Nov28/
--> No effect on physics.
--> Despite overall 'offset', it is clear that building time is reduced significantly for mkFit iterations:
https://mmasciovecchio.web.cern.ch/BTV_Nov2021/MTV_extraspeedup_Nov28/plots_timing/iterationsReal.pdf

@@ -231,19 +231,20 @@ int clean_cms_seedtracks_iter(TrackVec *seed_ptr, const IterationConfig& itrcfg,

const float dr2 = deta2+dphi*dphi;

const float thisDZ = z[ts]-z[tss]-thisDXY*(1.f/std::tan(theta[ts])+1.f/std::tan(theta[tss]));
//const float thisDZ = z[ts]-z[tss]-thisDXY*(1.f/std::tan(theta[ts])+1.f/std::tan(theta[tss]));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
//const float thisDZ = z[ts]-z[tss]-thisDXY*(1.f/std::tan(theta[ts])+1.f/std::tan(theta[tss]));

@mmasciov mmasciov merged commit 3024ba7 into devel Nov 28, 2021
@osschar osschar deleted the extraSpeedup branch December 14, 2021 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants