Added macro for plotting detector spectra.