q2e function

Convert photon-based quantities into energy-based quantities