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

feat: example material mapping using new core mapper (MM5) #3094

Merged

Conversation

asalzburger
Copy link
Contributor

@asalzburger asalzburger commented Apr 10, 2024

This re-establishes the vanilla material mapping using the new Core modules and a very simple CoreMaterialMapping algorithm (this one will be kept until the full functionality is reinstalled).

For out-of-the-box validation this is already quite good:

Screenshot 2024-04-10 at 14 45 19

@asalzburger asalzburger added this to the next milestone Apr 10, 2024
@github-actions github-actions bot added Component - Core Affects the Core module Component - Examples Affects the Examples module labels Apr 10, 2024
@asalzburger asalzburger added 🛑 blocked This item is blocked by another item and removed Component - Core Affects the Core module Component - Examples Affects the Examples module labels Apr 10, 2024
@github-actions github-actions bot added Component - Core Affects the Core module Component - Examples Affects the Examples module labels Apr 10, 2024
@asalzburger asalzburger removed the 🛑 blocked This item is blocked by another item label Apr 10, 2024
@asalzburger
Copy link
Contributor Author

Hi @Corentin-Allaire - this is the next one, it does not yet set up the logic of pre-sensor / post-sensor mapping, but it looks quite ok as a first shot.

@asalzburger
Copy link
Contributor Author

ping @Corentin-Allaire

Copy link
Contributor

@Corentin-Allaire Corentin-Allaire left a comment

Choose a reason for hiding this comment

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

Looks great ! Just a couple of comments then this can go in.

Examples/Python/src/Geometry.cpp Show resolved Hide resolved
@kodiakhq kodiakhq bot merged commit a54444f into acts-project:main Apr 16, 2024
53 checks passed
@acts-project-service acts-project-service added the Fails Athena tests This PR causes a failure in the Athena tests label Apr 16, 2024
Ragansu pushed a commit to Ragansu/acts that referenced this pull request Apr 19, 2024
…ect#3094)

This re-establishes the vanilla material mapping using the new Core modules and a very simple `CoreMaterialMapping` algorithm (this one will be kept until the full functionality is reinstalled).

For out-of-the-box validation this is already quite good:

![Screenshot 2024-04-10 at 14 45 19](https://github.com/acts-project/acts/assets/26623879/d19b052a-5347-43a2-bfa6-97c265408e15)
@andiwand andiwand modified the milestones: next, v34.1.0 Apr 25, 2024
kodiakhq bot pushed a commit that referenced this pull request May 1, 2024
This PR introduces (optimally navigation-less) material validation using core components.

It agrees very with the propagation based one, see below:

![Screenshot 2024-04-11 at 16 34 25](https://github.com/acts-project/acts/assets/26623879/cd0bd05d-3e13-4904-9390-17ebc91aa78d)

This PR now enables full support for `BinnedSurfaceMaterial` and `HomogeneousSurfaceMaterial` for Gen1 and Gen2 geometry.

While #3094 and #3109  enabled the creation of `.json` and `.root` maps from both Gen1 and Gen2 material, this one allows to test them.

E.g. for the ODD:

*Gen1 geometry:*
```sh
python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_validation_core.py -o odd_gen1_material_validation_root -n 1000 -t 1000 -m odd_gen1_material_maps.root
```

*Gen2 geometry:*
```sh
python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_validation_core.py -o odd_gen2_material_validation_root -n 1000 -t 1000 -m odd_gen2_material_maps.root --experimental
```
EleniXoch pushed a commit to EleniXoch/acts that referenced this pull request May 6, 2024
…ect#3094)

This re-establishes the vanilla material mapping using the new Core modules and a very simple `CoreMaterialMapping` algorithm (this one will be kept until the full functionality is reinstalled).

For out-of-the-box validation this is already quite good:

![Screenshot 2024-04-10 at 14 45 19](https://github.com/acts-project/acts/assets/26623879/d19b052a-5347-43a2-bfa6-97c265408e15)
EleniXoch pushed a commit to EleniXoch/acts that referenced this pull request May 6, 2024
)

This PR introduces (optimally navigation-less) material validation using core components.

It agrees very with the propagation based one, see below:

![Screenshot 2024-04-11 at 16 34 25](https://github.com/acts-project/acts/assets/26623879/cd0bd05d-3e13-4904-9390-17ebc91aa78d)

This PR now enables full support for `BinnedSurfaceMaterial` and `HomogeneousSurfaceMaterial` for Gen1 and Gen2 geometry.

While acts-project#3094 and acts-project#3109  enabled the creation of `.json` and `.root` maps from both Gen1 and Gen2 material, this one allows to test them.

E.g. for the ODD:

*Gen1 geometry:*
```sh
python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_validation_core.py -o odd_gen1_material_validation_root -n 1000 -t 1000 -m odd_gen1_material_maps.root
```

*Gen2 geometry:*
```sh
python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_validation_core.py -o odd_gen2_material_validation_root -n 1000 -t 1000 -m odd_gen2_material_maps.root --experimental
```
asalzburger added a commit to asalzburger/acts that referenced this pull request May 21, 2024
…ect#3094)

This re-establishes the vanilla material mapping using the new Core modules and a very simple `CoreMaterialMapping` algorithm (this one will be kept until the full functionality is reinstalled).

For out-of-the-box validation this is already quite good:

![Screenshot 2024-04-10 at 14 45 19](https://github.com/acts-project/acts/assets/26623879/d19b052a-5347-43a2-bfa6-97c265408e15)
asalzburger added a commit to asalzburger/acts that referenced this pull request May 21, 2024
)

This PR introduces (optimally navigation-less) material validation using core components.

It agrees very with the propagation based one, see below:

![Screenshot 2024-04-11 at 16 34 25](https://github.com/acts-project/acts/assets/26623879/cd0bd05d-3e13-4904-9390-17ebc91aa78d)

This PR now enables full support for `BinnedSurfaceMaterial` and `HomogeneousSurfaceMaterial` for Gen1 and Gen2 geometry.

While acts-project#3094 and acts-project#3109  enabled the creation of `.json` and `.root` maps from both Gen1 and Gen2 material, this one allows to test them.

E.g. for the ODD:

*Gen1 geometry:*
```sh
python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_validation_core.py -o odd_gen1_material_validation_root -n 1000 -t 1000 -m odd_gen1_material_maps.root
```

*Gen2 geometry:*
```sh
python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_validation_core.py -o odd_gen2_material_validation_root -n 1000 -t 1000 -m odd_gen2_material_maps.root --experimental
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Core Affects the Core module Component - Examples Affects the Examples module Fails Athena tests This PR causes a failure in the Athena tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants