q_ratio function

Photon:photon ratio