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: allow to created BinnedMaterialMaps from configured ProtoGridMaterialMaps #3109

Conversation

asalzburger
Copy link
Contributor

This PR allows to use a Gen1 BinnedSurfaceMaterial creation from a Gen2 ProtoGridSurfaceMaterial configuration.

The vice-versa approach will be part of another PR.

This can be tested with ODD Gen1 / Gen2 geometries by:

python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_mapping_core.py -i geant4_material_tracks.root -o odd_gen2_material -m odd_gen2_material_maps 

and for Gen2:

python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_mapping_core.py -i geant4_material_tracks.root -o odd_gen2_material -m odd_gen2_material_maps --experimental

@asalzburger asalzburger added this to the next milestone Apr 17, 2024
@github-actions github-actions bot added the Component - Core Affects the Core module label Apr 17, 2024
Copy link
Contributor

@ssdetlab ssdetlab 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 to me

@asalzburger asalzburger changed the title feat: allow to created BinnedMaterialMaps from configured ProgoGridMaterialMaps feat: allow to created BinnedMaterialMaps from configured ProtoGridMaterialMaps Apr 17, 2024
@kodiakhq kodiakhq bot merged commit 69b747b into acts-project:main Apr 18, 2024
51 checks passed
Ragansu pushed a commit to Ragansu/acts that referenced this pull request Apr 19, 2024
…terialMaps (acts-project#3109)

This PR allows to use a Gen1 `BinnedSurfaceMaterial` creation from a Gen2 `ProtoGridSurfaceMaterial` configuration.

The vice-versa approach will be part of another PR.

This can be tested with ODD Gen1 / Gen2 geometries by:

```sh
python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_mapping_core.py -i geant4_material_tracks.root -o odd_gen2_material -m odd_gen2_material_maps 
```

and for Gen2:

```sh
python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_mapping_core.py -i geant4_material_tracks.root -o odd_gen2_material -m odd_gen2_material_maps --experimental
```
@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
…terialMaps (acts-project#3109)

This PR allows to use a Gen1 `BinnedSurfaceMaterial` creation from a Gen2 `ProtoGridSurfaceMaterial` configuration.

The vice-versa approach will be part of another PR.

This can be tested with ODD Gen1 / Gen2 geometries by:

```sh
python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_mapping_core.py -i geant4_material_tracks.root -o odd_gen2_material -m odd_gen2_material_maps 
```

and for Gen2:

```sh
python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_mapping_core.py -i geant4_material_tracks.root -o odd_gen2_material -m odd_gen2_material_maps --experimental
```
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
…terialMaps (acts-project#3109)

This PR allows to use a Gen1 `BinnedSurfaceMaterial` creation from a Gen2 `ProtoGridSurfaceMaterial` configuration.

The vice-versa approach will be part of another PR.

This can be tested with ODD Gen1 / Gen2 geometries by:

```sh
python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_mapping_core.py -i geant4_material_tracks.root -o odd_gen2_material -m odd_gen2_material_maps 
```

and for Gen2:

```sh
python ~/Documents/work/dev/acts-grid-material-prs/Examples/Scripts/Python/material_mapping_core.py -i geant4_material_tracks.root -o odd_gen2_material -m odd_gen2_material_maps --experimental
```
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants