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

refactor: Brush over new detector geometry part 1 #2309

Merged
merged 4 commits into from
Jul 21, 2023

Conversation

andiwand
Copy link
Contributor

  • consistent pass by value
  • reformat documentation

pull changes out of #2214

@andiwand andiwand added this to the next milestone Jul 20, 2023
@github-actions github-actions bot added Component - Core Affects the Core module Component - Documentation Affects the documentation labels Jul 20, 2023
@github-actions
Copy link

github-actions bot commented Jul 20, 2023

📊 Physics performance monitoring for 335038a

Summary
Full report
Seeding: seeded, truth estimated, orthogonal
CKF: seeded, truth smeared, truth estimated, orthogonal
IVF: seeded, truth smeared, truth estimated, orthogonal
AMVF: seeded, truth smeared, truth estimated, orthogonal
Ambiguity resolution: seeded, orthogonal
Truth tracking
Truth tracking (GSF)

Vertexing

Vertexing vs. mu
IVF seeded

IVF truth_smeared

IVF truth_estimated

IVF orthogonal

AMVF seeded

AMVF truth_smeared

AMVF truth_estimated

AMVF orthogonal

Seeding

Seeding seeded

Seeding truth_estimated

Seeding orthogonal

CKF

CKF seeded

CKF truth_smeared

CKF truth_estimated

CKF orthogonal

Ambiguity resolution

seeded

Truth tracking (Kalman Filter)

Truth tracking

Truth tracking (GSF)

Truth tracking

asalzburger
asalzburger previously approved these changes Jul 20, 2023
Copy link
Contributor

@asalzburger asalzburger left a 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
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #2309 (335038a) into main (7251c28) will increase coverage by 0.01%.
The diff coverage is 86.36%.

@@            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     
Impacted Files Coverage Δ
Core/include/Acts/Detector/Portal.hpp 100.00% <ø> (ø)
.../include/Acts/Navigation/DetectorVolumeFinders.hpp 71.42% <ø> (ø)
...include/Acts/Navigation/DetectorVolumeUpdators.hpp 71.42% <ø> (ø)
Core/src/Detector/Detector.cpp 60.00% <75.00%> (+2.02%) ⬆️
Core/src/Detector/LayerStructureBuilder.cpp 37.38% <75.00%> (+1.80%) ⬆️
Core/src/Detector/DetectorVolume.cpp 49.36% <85.71%> (ø)
Core/include/Acts/Detector/DetectorVolume.hpp 74.28% <100.00%> (ø)
Core/include/Acts/Navigation/NextNavigator.hpp 47.65% <100.00%> (ø)
Core/src/Detector/Portal.cpp 71.66% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@paulgessinger
Copy link
Member

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.

@andiwand
Copy link
Contributor Author

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

@paulgessinger
Copy link
Member

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.

@andiwand andiwand requested a review from asalzburger July 21, 2023 06:29
@asalzburger
Copy link
Contributor

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.

@kodiakhq kodiakhq bot merged commit b30f678 into acts-project:main Jul 21, 2023
@andiwand andiwand deleted the brush-detector-part1 branch July 21, 2023 09:34
@acts-project-service acts-project-service added the Fails Athena tests This PR causes a failure in the Athena tests label Jul 21, 2023
@CarloVarni
Copy link
Collaborator

I believe the failure is coming from Athena and is un-related to this PR

@CarloVarni CarloVarni removed the Fails Athena tests This PR causes a failure in the Athena tests label Jul 21, 2023
@asalzburger
Copy link
Contributor

None of this code is running in Athena already.

@paulgessinger paulgessinger modified the milestones: next, v27.2.0 Jul 24, 2023
paulgessinger pushed a commit to paulgessinger/acts that referenced this pull request Jul 24, 2023
- consistent pass by value
- reformat documentation

pull changes out of acts-project#2214
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Core Affects the Core module Component - Documentation Affects the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants