Identifying muons for neutrino oscillation and cross section experiments