-
Notifications
You must be signed in to change notification settings - Fork 157
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
buildITkGeometry in itk.py doesn't produce hits #1149
Comments
I assume aside from the geometry source, it's the exact same script? |
Yes, identical script. I added the json geometry building to |
Following @paulgessinger's suggestion, I ran a single particle (10 GeV muon, eta=0.5) through the two geometries with verbose logging: created with The most immediately obvious difference is that the first detector Fatras encounters: HGTD::PositiveEndcap (Python) vs BeamPipe::Barrel (JSON). The former doesn't see any other detectors, while the latter sees This was run with the current |
I guess the HGTD is being treated as a barrel detector, so the rRange 0-1050mm kicks in straight away. But it has:
|
I found a quick workaround. If I comment out the HGTD |
Hi @noemina, To quickly test this out, you can use There's also a top-level script, full_chain_itk.py, that you can run just like this:
Currently it just does That produces You can compare with the JSON configuration with this branch, by specifying
I also tested with changes to the
You can add I hope that helps, |
Hello @timadye, zRange=LayerTriplet( negative=(-4000 * u.mm, -3000 * u.mm), postive=(3000 * u.mm, 4000 * u.mm), ), Cheers, |
I'm guessing that was on me, actually. My bad. |
Thanks for the fix @noemina! That's excellent. I'm surprised this didn't flag an error. Is it possible to give an Thanks, |
I used
buildITkGeometry
to create aTGeoDetector
geometry for the ATLAS ITk. This looks OK, except when used by Fatras, it doesn't generate any hits.If instead, I specify the geometry definition with
hits are generated without problem.
I'll continue to try to find a difference in the returned
detector
andtrackingGeometry
objects from these two methods, but thought it worth flagging up now in case someone has a better idea.The text was updated successfully, but these errors were encountered: