Measuring the escaping beam ions from a tokamak plasma