The file format is
1st_photon initial_phase finalphase x_end y_end vx vy 2nd_photon initial_phase finalphase x_end y_end vx vy ... ith_photon initial_phase finalphase x_end y_end vx vy