-
Notifications
You must be signed in to change notification settings - Fork 100
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
materialScan is not adapted for USE_GEANT4_UNITS #1163
Comments
Edit: more questions |
Hi, I have attached the cmake cache file of my local DD4hep I enabled the build option I know that the units are shown in mm and not in cm (as it is said in the output of materialScan) because I build the geometry. This is the output of materialScan:
This is the line which defines the box of silicon (it is the only volume),
Thank you for your time |
Yes, that turns the units from cm to mm, but the output of the materialScan command has not been changed to switch when this GEANT4_UNITS flag is turned on. |
I have recompiled without that flag and it is back to normal. Shall we close the issue? Thank you for your time!! |
we should fix the printouts of the materialScan command when GEANT4_UNITS is on |
@atolosadelgado Hi Alvaro,
for TGeo units I get the same output. All input lengths are in [cm] regardless of the compilation mode:
|
To reproduce the issue, you can load any detector and check distances. This should create a box of 19x19x19 cm3, in a world 30cm x 30cm x 30cm.
I think the units are in mm, but it is written cm. Also, if I remember correctly, the expected output with older versions of DD4hep would be Air-Material-Air when doing this, not Air-Material.
Thank you for your time :)
Alvaro
The text was updated successfully, but these errors were encountered: