Particle detector simulation.