Added a mode in which only the number of photons is written to the event file.