Kill photons with pathlength greater than 1000mm.

Photons were only killed when detection algorithm triggered.