Pion emission from the T2K replica target: method, results and application — arXiv2