-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the tuple array container to the detector and puts the toy
detector grids inside (Only works on host so far). Apart from that, a brute force surface finder is also added. All can be accessed with custom type IDs, the same way as it is implemented for the masks. The surface finders can be called from the navigator using a neighborhood_kernel, but for now they always return the complete volume range, until the zone function of the grid is properly adapted. The grids are built in the toy geometry in dedicated functions and the detector now uses the custom bin_association to fill surfaces into grids. For now, the grid building is commented out until we have a working implementation of a grid container in a subsequent PR. Further small changes: - The previous surface_finder class is no longer used in favour of the tuple_array_container. All typedefs are done by the type_registry. - The type ID enums are no longer implicitly convertible to an index for type safety, but can be converted, if necessary. - Where possible, all code that contains 'unrolling' has been put into functors and is called in the tuple_container. - The volume index is now fixed to dindex, since this is unlikely to change. - The surface finder link has been removed from the masks, since it is now part of the volume class. - Some minor refactoring (e.g. the edge types are renamed to volume_link for clarity). - More elaborate comments on some geometry classes and their template arguments. - For some reason, the usage of the detector memory resource in the navigator buffer broke, so they get an external resource now.
- Loading branch information
1 parent
ad1de25
commit e856af4
Showing
39 changed files
with
1,948 additions
and
1,530 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.