A χ2 test used for particle identification with the Hall A RICH detector at JLab