In high-energy heavy-ion collision experiment and simulation, thousands of particles are generated and recorded in one event. It is necessary to provide unique codes to register different particles ...