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

New function for creating misaligned detector views #894

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tsulaiav
Copy link
Contributor

@tsulaiav tsulaiav commented Dec 2, 2024

No description provided.

@tsulaiav tsulaiav force-pushed the main-det-misalign branch 3 times, most recently from c005fc7 to 398185e Compare December 12, 2024 01:25
@tsulaiav tsulaiav changed the title extended the detector_construction example (in CUDA tutorial) with a misaligned detector view New function for creating misaligned detector views Dec 12, 2024
Copy link
Contributor

@niermann999 niermann999 left a comment

Choose a reason for hiding this comment

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

Looks good already! Some test cases would be good to make sure the detector naturally accesses the misaligned transforms. You could e.g. go through the detector surfaces with the auto sf = tracking_surface{some_surface_descriptor_from_the_detector} class and check that is picks up the correct translation in sf.transform()

tests/unit_tests/device/cuda/detector_cuda.cpp Outdated Show resolved Hide resolved
tests/unit_tests/device/cuda/detector_cuda.cpp Outdated Show resolved Hide resolved
tests/unit_tests/device/cuda/detector_cuda.cpp Outdated Show resolved Hide resolved
@tsulaiav tsulaiav force-pushed the main-det-misalign branch 2 times, most recently from 7598137 to e116c5b Compare December 12, 2024 19:50
@tsulaiav tsulaiav marked this pull request as ready for review December 18, 2024 06:29
@tsulaiav tsulaiav force-pushed the main-det-misalign branch 4 times, most recently from 05d91f5 to 02addda Compare December 19, 2024 00:36
Introduced a new function `misaligned_detector_view()` that makes a misaligned detector view
by combining "static" buffers of the detector (volumes, surfaces, etc.) with a buffer of
potentially misaligned transforms.

The new mechanism is tested by a new unit test `detector_align_cuda`. A demonstration of the
usage of this mechanism added to the `cuda/detector_construction` tutorial code
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