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

Put detector in navigator_state #293

Merged
merged 13 commits into from
Sep 27, 2022

Conversation

beomki-yeo
Copy link
Collaborator

@beomki-yeo beomki-yeo commented Aug 30, 2022

Depends on #291
This PR moves detector pointer from navigator to its state

@beomki-yeo beomki-yeo requested a review from niermann999 August 30, 2022 00:38
@beomki-yeo
Copy link
Collaborator Author

@niermann999 PR is ready

vector_type<intersection_type> candidates)
: _detector(&det), _candidates(candidates) {}

/// Scalar representation of the navigation state,
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please update the comments?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK

@@ -410,8 +414,9 @@ class navigator {
DETRAY_HOST_DEVICE inline bool init(propagator_state_t &propagation) const {

state &navigation = propagation._navigation;
const auto &det = navigation.detector();
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this return a reference to a pointer? I am wondering, does simply using const auto make things easier or does that break something?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You are right :p That was dumb.

@beomki-yeo beomki-yeo merged commit 01aad4a into acts-project:main Sep 27, 2022
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