moved particle_type into beam class