is_photon_based function

Query if a spectrum contains photon- or energy-based data.