where z is the number of positive or negative charges of the ion, e is the elementary charge and m is the mass of the ion. An electric excitation signal having a frequency f will therefore resonate with ions having a mass-to-charge ratio m/z given by