the invention provides an ion source , including an inlet port for introduction of a sample into the ion source ; an outlet port through which an ion beam exits ; an ionizer for ionizing the sample ; an ion formation chamber confined by an ion cage , and at least one electrical shield for shielding the ion chamber from the penetration of electrical fields affecting the ions inside the chamber .