-
Notifications
You must be signed in to change notification settings - Fork 95
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 on CAD-imported geometry : strange results... #1322
Comments
Hi @danieljeans thank you for reporting the error. In addition to
Are these numbers more sensible? Maybe @aciarma can comment on this :) By the way, there is an error reported by Geant4, do you know if this can cause problems to geantinos?
|
Thanks @atolosadelgado the results from g4MaterialScan look reasonable to me. It seems like the material description in g4 is fine, but that something is lost in translation when we look via the DDRec/MaterialManager ? Regarding the "some facets have wrong orientation!" warning, I have no idea where this comes from (maybe a question for @aciarma ?) , or if this can cause any problems. |
So.....I did some research. I guess we can close this issue. |
Thanks for pinpointing the cause. Adding a warning is an excellent idea in my opinion, and I suggest keeping the issue open until this is done |
VecGeom tessellated navigation does not work properly (I reported that some time ago) but it looks to me very difficult to fix |
A warning was added that covers this case. |
Check duplicate issues.
Goal
list materials along a line in detector model which including CAD imports, using the materialScan utility.
Operating System and Version
ubuntu22
compiler
gcc11.4.0
ROOT Version
6.32.04
DD4hep Version
/cvmfs/sw-nightlies.hsf.org/key4hep/setup.sh -r 2024-09-04
Reproducer
Using the model defined in
https://github.com/aciarma/k4geo/tree/commonMDI/FCCee/MDI/compact/MDI_o1_v01/MDI_standalone_o1_v01.xml
which includes a beampipe from a CAD geometry. (n.b. You need to download the stl geometry files from https://fccsw.web.cern.ch/fccsw/filesForSimDigiReco/MDI/MDI_o1_v01/ )
For simplicity I commented out all detector components except
<include ref="Beampipe_CADimport_o1_v02.xml"/>
from the file MDI_standalone_o1_v01.xml
first I scan the geometry using a geantino, using ddsim:
I see something reasonable: a beampipe made of various layers, with inner radius ~10mm:
Then I try to run materialScan on the same model, listing material between 0,0,0 and 10,0,0 (cm)
materialScan MDI_standalone_o1_v01.xml 0 0 0 10 0 0
which shows very different material to what is expected: essentially a block of copper. Also the path lengths don't seem to be consistent (don't sum to 10cm)?
As far as I can see, materialScan uses DDRec/MaterialScan, and then further on DDRec/MaterialManager...
Any suggestions? thanks!
Additional context
No response
The text was updated successfully, but these errors were encountered: