Dilepton and photon productions from a coherent pion oscillation