Dpmjet-III, learning from RHIC data for cosmic ray particle production