-
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 material grids as material maps and add the relevant types to the
detector metadata. The material maps of different shapes are tested in a dedicated unittest. Mapeterial maps are added to the toy detector and wire chamber via the detector helper. The material is a silicon and aluminium mixture that is mapped in configurable binning onto the disc and cylinder portals.
- Loading branch information
1 parent
5c3071b
commit d6eb700
Showing
27 changed files
with
990 additions
and
270 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** Detray library, part of the ACTS project (R&D line) | ||
* | ||
* (c) 2023 CERN for the benefit of the ACTS project | ||
* | ||
* Mozilla Public License Version 2.0 | ||
*/ | ||
|
||
#pragma once | ||
|
||
// Detray include(s) | ||
#include "detray/definitions/containers.hpp" | ||
#include "detray/materials/material_slab.hpp" | ||
#include "detray/surface_finders/grid/grid.hpp" | ||
#include "detray/tools/grid_factory.hpp" | ||
|
||
namespace detray { | ||
|
||
/// Definition of binned material | ||
template <typename axes_shape, typename scalar_t, | ||
typename container_t = host_container_types, bool owning = false> | ||
using material_map = grid<coordinate_axes<axes_shape, owning, container_t>, | ||
material_slab<scalar_t>, simple_serializer, replacer>; | ||
|
||
/// How to build material maps of various shapes | ||
template <typename scalar_t = detray::scalar> | ||
using material_map_factory = | ||
grid_factory<material_slab<scalar_t>, simple_serializer, replacer>; | ||
|
||
} // namespace detray |
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.