The bug impacts the "Template correction" path which is meant for ITk pixel in the future. The issue was that the lorentz angle was not recalculated properly in this case.
Also some minor speed up improvements are included