Removed code from photonSelection section