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

fix: Write surface only once in the MaterialMapJsonConverter #787

Merged

Conversation

Corentin-Allaire
Copy link
Contributor

With this PR when converting a tracking geometry to a Hierarchy the volume that have already been added to the hierarchy won't be added a second time. This solve the issue that if a volume belong to multiple volumes (as it is the case for the Calorimeter in the Acts ATLAS implementation) the code would result in an error (since hierarchy can only have each identifier appear once)

@Corentin-Allaire Corentin-Allaire added this to the next milestone Apr 28, 2021
@Corentin-Allaire Corentin-Allaire added Component - Plugins Affects one or more Plugins Impact - Minor Nuissance bug and/or affects only a single module Improvement Changes to an existing feature labels Apr 28, 2021
@Corentin-Allaire Corentin-Allaire changed the title Refactor: Write surface only once in the MaterialMapJsonConverter refactor: Write surface only once in the MaterialMapJsonConverter Apr 28, 2021
@Corentin-Allaire Corentin-Allaire changed the title refactor: Write surface only once in the MaterialMapJsonConverter fix: Write surface only once in the MaterialMapJsonConverter Apr 28, 2021
@codecov
Copy link

codecov bot commented Apr 28, 2021

Codecov Report

Merging #787 (fd28c8b) into master (ec14282) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #787   +/-   ##
=======================================
  Coverage   48.67%   48.67%           
=======================================
  Files         328      328           
  Lines       16889    16889           
  Branches     7930     7930           
=======================================
  Hits         8220     8220           
  Misses       3072     3072           
  Partials     5597     5597           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ec14282...fd28c8b. Read the comment docs.

@paulgessinger paulgessinger merged commit ffd0c8a into acts-project:master Apr 28, 2021
@paulgessinger paulgessinger modified the milestones: next, v8.1.0 Apr 28, 2021
gagnonlg pushed a commit to gagnonlg/acts that referenced this pull request May 11, 2021
…oject#787)

With this PR when converting a tracking geometry to a Hierarchy the volume that have already been added to the hierarchy won't be added a second time. This solve the issue that if a volume belong to multiple volumes (as it is the case for the Calorimeter in the Acts ATLAS implementation) the code would result in an error (since hierarchy can only have each identifier appear once)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Plugins Affects one or more Plugins Impact - Minor Nuissance bug and/or affects only a single module Improvement Changes to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants