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

Update to new detray geometry reading for alpaka seeding #514

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

Conversation

StewMH
Copy link
Contributor

@StewMH StewMH commented Feb 7, 2024

Change to new detray geometry reading. Compiles but I haven't managed to get the example to execute yet - may need some iteration. Will discuss in comments.

@StewMH
Copy link
Contributor Author

StewMH commented Feb 7, 2024

Trying this command:

./bin/traccc_seeding_example_alpaka --input-directory=detray_simulation/telescope/sparse_tracks/single_tracks/ --check-performance=true --detector-file=geometries/toy_detector/toy_detector_geometry.json --material-file=geometries/toy_detector/toy_detector_homogeneous_material.json --grid-file=geometries/toy_detector/toy_detector_surface_grids.json --event=1

fails with

Running ./bin/traccc_seeding_example_alpaka geometries/toy_detector/toy_detector_geometry.json detray_simulation/telescope/sparse_tracks/single_tracks/ 1
WARNING: mask store has empty collection no. 2
WARNING: mask store has empty collection no. 3
WARNING: mask store has empty collection no. 6
WARNING: mask store has empty collection no. 7
WARNING: material store has empty collection no. 0
WARNING: material store has empty collection no. 1
WARNING: material store has empty collection no. 2
WARNING: material store has empty collection no. 4
WARNING: acceleration data structures store has empty collection no. 3
WARNING: acceleration data structures store has empty collection no. 4
WARNING: No entries in volume finder
terminate called after throwing an instance of 'std::invalid_argument'
  what():  ERROR: Invalid barcode for surface:
INVALID: vol = 15 | id = 15 | index = 854 | extra = 255 | trf.: 0 | mask: undefined | mat.: undefined

Aborted (core dumped)

@niermann999
Copy link
Contributor

niermann999 commented Feb 7, 2024

Trying this command:

./bin/traccc_seeding_example_alpaka --input-directory=detray_simulation/telescope/sparse_tracks/single_tracks/ --check-performance=true --detector-file=geometries/toy_detector/toy_detector_geometry.json --material-file=geometries/toy_detector/toy_detector_homogeneous_material.json --grid-file=geometries/toy_detector/toy_detector_surface_grids.json --event=1

fails with

Running ./bin/traccc_seeding_example_alpaka geometries/toy_detector/toy_detector_geometry.json detray_simulation/telescope/sparse_tracks/single_tracks/ 1
WARNING: mask store has empty collection no. 2
WARNING: mask store has empty collection no. 3
WARNING: mask store has empty collection no. 6
WARNING: mask store has empty collection no. 7
WARNING: material store has empty collection no. 0
WARNING: material store has empty collection no. 1
WARNING: material store has empty collection no. 2
WARNING: material store has empty collection no. 4
WARNING: acceleration data structures store has empty collection no. 3
WARNING: acceleration data structures store has empty collection no. 4
WARNING: No entries in volume finder
terminate called after throwing an instance of 'std::invalid_argument'
  what():  ERROR: Invalid barcode for surface:
INVALID: vol = 15 | id = 15 | index = 854 | extra = 255 | trf.: 0 | mask: undefined | mat.: undefined

Aborted (core dumped)

It is very possible that the toy detector file is outdated. You can generate a new one from detray using ./detray_generate_toy_detector --write_material --write_grids --endcap_layers 7. Similarly for the telescope detector, for which, I believe, you are loading the simulation data

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