Ionization Source: Prior to entering the mass spectrometer, the sample components are ionized using various ionization sources such as electrospray ionization (ESI) or atmospheric pressure chemical ionization (APCI). These sources generate ions from the analytes, which are then introduced into the mass analyzer.