script for muons and pions output