The cosmics rays quality test procedure for the CMS barrel resistive plate chambers