5911
5912
"""Reorder the legs in the process according to the difference
5912
5913
between org_perm and proc_perm"""
5914
5917
leglist = base_objects.LegList(\
5915
5918
[copy.copy(process.get('legs_with_decays')[i]) for i in \
5916
5919
diagram_generation.DiagramTag.reorder_permutation(\
5918
5921
new_proc = copy.copy(process)
5919
5928
new_proc.set('legs_with_decays', leglist)
5921
5930
if not new_proc.get('decay_chains'):
5922
5931
new_proc.set('legs', leglist)