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

New macro to obtain volumes information #4

Merged
merged 2 commits into from
Mar 26, 2024
Merged

Conversation

mariajmz
Copy link
Contributor

This is a new ROOT macro to print information of the volumes inside a GDML geometry file: density, volume (capacity) and material name.
It also prints some information about the hierarchy of the volumes within the geometry.
Here an example with the output when calling this macro with the geometry IAXO-D1/ChamberAndPipe.gdml:

root [0] .L PrintGeometryInfo.C
root [1] PrintGeometryInfo("../gdml/IAXO-D1/ChamberAndPipe.gdml");

output_macro_PrintGeometryInfo

@mariajmz mariajmz requested a review from lobis as a code owner March 26, 2024 09:17
macros/PrintGeometryInfo.C Outdated Show resolved Hide resolved
@lobis
Copy link
Member

lobis commented Mar 26, 2024

This is very nice @mariajmz !

I added a suggestion to also display the mass of the object, which is the most useful quantity when calculating background.

Co-authored-by: Luis Antonio Obis Aparicio <[email protected]>
@mariajmz mariajmz merged commit f4f3cff into master Mar 26, 2024
2 checks passed
@lobis lobis deleted the mariajmz_new_macro branch March 26, 2024 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants