Make plots for the cosmic track splitting validation

This code is to make plots for the cosmic track splitting validation, as is done by several other validations in the All In One Tool. I was asked by the alignment conveners to create this pull request in several release cycles.

Backport of pull request #5081 in 72X

Equivalent pull requests in other releases:
72X #5081 
71X #5091 
70X #5092 
53X #5093