-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement conversion of G4PVReplica to VecGeom PlacedVolumes (#25)
* Import GDML generated from Geant4 Basic Example B5 as of v11.3 Generated by modifying `DetectorConstruction::Construct()` with: ```c++ G4GDMLParser parser; parser.Write("B5.gdml", worldPhysical); ``` immediately before returning `worldPhysical`. * Support conversion of G4PVReplica to VecGeom placements Need identified in AdePT/Celeritas benchmarks using Geant4's example B5, which uses `G4PVReplica` to model some of its geometry components. The conversion will fail as `G4PVReplica` has no direct equivalent in VecGeom. Implement conversion of `G4PVReplica` by creating individual placements of the replicated logical volumes. Use `G4ReplicaNavigation` to transform the volume before creating the placement with this transform. Note that this only works with rotational or linear replication. Radial replication implies changes to the underlying solid's dimensions. Use exported B5 geometry GDML file to implement a unit test of the conversion. NB: this currently fails due to a seemingly issue with treatment of pointers in the name of the top volume. * Remove pointer from main setup volume name Follows pattern in other test files and needed to get ReplicaTest unit test to pass.
- Loading branch information
1 parent
638c273
commit b962627
Showing
3 changed files
with
906 additions
and
0 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
Oops, something went wrong.