-
Notifications
You must be signed in to change notification settings - Fork 178
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
refactor: Brush over new detector geometry part 1 #2309
Conversation
📊 Physics performance monitoring for 335038aSummary VertexingSeedingCKFAmbiguity resolutionTruth tracking (Kalman Filter)Truth tracking (GSF) |
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.
Looks mostly cosmetics, fine with me.
Codecov Report
@@ Coverage Diff @@
## main #2309 +/- ##
==========================================
+ Coverage 49.49% 49.51% +0.01%
==========================================
Files 450 450
Lines 25461 25465 +4
Branches 11720 11718 -2
==========================================
+ Hits 12603 12608 +5
Misses 4565 4565
+ Partials 8293 8292 -1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…brush-detector-part1
Isn't it usually safer to use constant refs, because that decreases the likelihood that the caller accidentally copies? Especially with vector arguments I've seen that happen for sure. Might not be super relevant for the geometry construction. |
Not sure - you lose the ability to move the vector to where it belongs and will always end up with a copy. clang tidy will check the intermediate steps so should not be forgotten. The caller might forget it but then you have a single copy as before |
Fair enough. Maybe we should take some extra care for vectors that are large or contain very complex objects, but that doesn't seem to be the case here anyway. |
Looks like we have an agreement here, I see it as Andreas does, the PR makes this consistent and hence allows copy or move, whatever is better. |
I believe the failure is coming from Athena and is un-related to this PR |
None of this code is running in Athena already. |
- consistent pass by value - reformat documentation pull changes out of acts-project#2214
pull changes out of #2214