Hamiltonian treatment of optical emission from irradiated metals