Patent ID: 8891729

Claim:
An X-ray analyzer, comprising: a transmission X-ray inspecting portion comprising: a first X-ray source; and a transmission X-ray detector for detecting a transmission X-ray that passed through a sample from the first X-ray source; a fluorescent X-ray inspecting portion comprising: a second X-ray source; and a fluorescent X-ray detector for detecting a fluorescent X-ray output from the sample when the sample is irradiated with an X-ray from the second X-ray source; a sample stage for holding the sample; a movement mechanism for moving the sample stage relatively between an irradiation position of the first X-ray source and an irradiation position of the second X-ray source; foreign matter position calculating means for calculating a position of a foreign matter detected in the sample by the transmission X-ray detector, the foreign matter position calculating means being configured to: calculate a distance t 2 on the transmission X-ray detector along a direction perpendicular to an optical axis of the first X-ray source from the optical axis of the first X-ray source to the position of the foreign matter, a distance h 1 parallel to the optical axis of the first X-ray source from the first X-ray source to the position of the foreign matter, and a distance h 2 parallel to the optical axis of the first X-ray source from the first X-ray source to a position of the transmission X-ray detector; and calculate a distance t 1 along a direction perpendicular to the optical axis of the first X-ray source from the optical axis of the first X-ray source to the position of the foreign matter based on an equation t 1 =(h 1 /h 2 )×t 2 ; and movement mechanism control means for controlling the movement mechanism so that the position of the foreign matter calculated by the foreign matter position calculating means coincides with an optical axis of the second X-ray source.