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: GeoModelDetectorObjectFactory for flexible conversion of GeoModel objects to Acts Surfaces and Volumes #3499

Merged
merged 133 commits into from
Aug 22, 2024

Conversation

Berggren-Jonas
Copy link
Contributor

@Berggren-Jonas Berggren-Jonas commented Aug 8, 2024

This PR adds a GeoModelDetectorObjectFacoty that converts a variety of GeoModel elements to Acts elements in a flexible manner.

  • For the interface with the database and the .obj conversion I added a geomodel_vol.py. It takes a number of optional parameters to select what and how to convert.

python3 geomodel_vol.py -i ATLAS-R3-MUONTEST_v3.db -q Pixel SCT --output-obj -o id -ml Silicon converts the FullPhysVol elements of the ID to Acts::SensitiveSurface
converted_id00

python3 geomodel_vol.py -i ATLAS-R3-MUONTEST_v3.db -q Muon --output-obj -o muons -ml RPCgas Aluminium --convert-boundingboxes MDT -n RpcGasGap Tube BML1_RPC11_1_3_1_1_2 BML1_MDT03_1_3_1 converts the gas gaps of the specified RPC to Acts::SensitivSurface elements. In addition it converts the FullPhysVol of the specified MDT to Acts::Experimental::DetectorVolume containing the tubes as Acts::Surface elements.
rpc_mdt00

  • In addition I added a simple unit test that checks the conversion of a GeoBox containing a Tube and a an other GeoBox as subvolumes.
    "@wip ready for review"

Matthew Harris and others added 30 commits June 3, 2024 08:14
CMakeLists.txt Outdated Show resolved Hide resolved
CI/setup_cvmfs_lcg105.sh Outdated Show resolved Hide resolved
@github-actions github-actions bot removed the Infrastructure Changes to build tools, continous integration, ... label Aug 22, 2024
@paulgessinger paulgessinger removed the 🚧 WIP Work-in-progress label Aug 22, 2024
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
23.1% Coverage on New Code (required ≥ 25%)
37.3% Line Coverage on New Code (required ≥ 50%)

See analysis details on SonarCloud

@paulgessinger paulgessinger merged commit 61bb603 into acts-project:main Aug 22, 2024
34 of 36 checks passed
@andiwand
Copy link
Contributor

I think there are a bunch of clang-tidy failures on main after this one @Berggren-Jonas @paulgessinger

kodiakhq bot pushed a commit that referenced this pull request Aug 23, 2024
After #3499, a few clang-tidy issues snuck into `main`. I'm fixing them here.
@paulgessinger
Copy link
Member

@andiwand my bad, fixed in separate PR.

@paulgessinger paulgessinger modified the milestones: next, v36.2.0 Aug 26, 2024
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 Component - Plugins Affects one or more Plugins Feature Development to integrate a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants