-
Notifications
You must be signed in to change notification settings - Fork 5
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
Follow up to PR31722 (#614) #615
Follow up to PR31722 (#614) #615
Conversation
c0fed97
to
9827fb7
Compare
…sw#614) Used accessors in all cases. This commit does not change the memory layout of the class. Also fixed C-style casts (reinterpret casts are needed here). cms-sw#31722 (comment) cms-sw#31722 (comment)
Also removed addition of transposed matrix by directly copying the needed elements. cms-sw#31722 (comment) cms-sw#31722 (comment)
Also introduced a computation simplification suggested in: cms-sw#31722 (comment)
Co-authored-by: Andrea Bocci <andrea.bocci@cern.ch>
558b5d8
to
96d121f
Compare
Also made the type explicit. cms-patatrack#615 (comment)
HitContainer hitIndices; | ||
HitContainer detIndices; | ||
HitContainer hitIndices_; | ||
HitContainer detIndices_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not fully convinced of this encapsulations of SoAs.
It is just mere orthography. Semantics has not changed as both const and non-const accessors have been provided.
What are we encpsulating here?
The implementation encapsulation is done in the SoA itself.
Given that it is highly probable that all this will be modified again once the eventual final SoA model will be deployed (together with the Heterogeneous framework) I suggest to keep an open issue on Orthography of SoA
and leave for the time being my choice of orthography for my design of SoAs....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So please split the changes in the Arithmetic of the fit (that is supposed (I hope) a performance improvement) from this esthetic changes. (also because we want to profile them independently)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit just ensures we have a class with only one of each public
, protected
and private
section. So indeed entirely cosmetic, but mandated by coding rules.
Computations and code style are already in different commits, so I guess you meant splitting this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, spitting this PR:
one cosmetics
one computational performance
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do this just because we are in this package, nothing to do with patatrack...
As usual we fix 20 year old code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more fix that is not Patatrack related.
(in itself due since long time, still should be part of some unrelated cleanup campaign)
As requested by @VinInn, I close this PR to split it into a performance PR on one side and code cleanliness PR on the other. |
Also made the type explicit. cms-patatrack#615 (comment)
Also made the type explicit. cms-patatrack#615 (comment)
I am now working on the pixel producers. I copied the version in here. Please do not commit them anymore. |
Also made the type explicit. cms-patatrack#615 (comment)
Also made the type explicit. cms-patatrack#615 (comment)
PR description:
PR validation:
if this PR is a backport please specify the original PR and why you need to backport that PR:
Before submitting your pull requests, make sure you followed this checklist: