I'm just curious, if the IPTools is necessary in this case?
IIRC, the code basically returns a distance between Line(jetaxis, pv) and the track helix.
Building a transient track at this point sounds a bit of an overkill.