Skip to content

[surface model] Relocate for extruding overlaps

This MR proposes to relocate rays if they don't find an exiting surface. We interpret this as extruding overlaps that can be fixed by relocation. In most cases, this is the case but sometimes after relocation the distance is either infinity or 0, therefore we terminate the simulation if that happens after relocation to avoid infinity loops.

Also, currently we always print the warnings so that possible infinite loops can be observed, although there shouldn't be any at this point.

With the relocation, some setups such as the testbeam hgcal are stable and don't crash anymore for > 30 mio rays.

Merge request reports