An X-ray facility has at least one x-ray emitter, an x-ray detector and an isocenter arranged along a central beam path between the x-ray emitter and the x-ray detector. An electrical discharge electrode produces ions to at least partially electrically discharge the comminuted material. The contaminant sample can include gaseous components, particulates of various kinds, and microorganisms.