Partial ion yield spectroscopy around the Cl 2p and C 1s ionization