Mass spectrometry is a process of producing charged particles (ions) from the chemical substances that are to be analyzed.
Mass spectrometer is the instrument used in this process which uses an electric and magnetic fields to measure the mass ("weight") of the charged particles.