Si14 said:
Is it right to say photons produce laser, and electrons are the origin of x-ray?
X-rays are one area of the electromagnetic spectrum, a designation of a particular set of wavelengths of light (about 0.01 to 10 nm), laser light is usually in the visible range or infrared, so around 100-1000 nm. (look up the electromagnetic spectrum for more on that) Photons are "particles" of light (or more correctly, electromagnetic radiation). So you have x-ray photons and visible photons, depending on the wavelength.
The photons in a laser beam are produced by the electrons in a material (such as a gas, for a gas laser) moving from a higher energy level to a lower one within the atoms/molecules, giving off the extra energy as a photon. The photon's wavelength is a measure of how much energy the photon has. (lower wavelength means higher energy and vice-versa). The more energetic x-rays are given off by nuclear decay (gamma rays) and by very high energy electrons, such as those accelerated by a huge voltage difference (a 'cathode tube').
If so, the absorption spectrum for these two is different for a given material?
The absorption spectrum is very different, because very different things happen. When a photon of visible light hits a material and it is absorbed (
if it is absorbed), the electrons go to a higher energy state within the atoms/molecules (i.e. the same kind of thing that happens when it was emitted in the laser, but in reverse). After absorbing it, the electrons eventually go back to their original states, and the photon's energy may become heat, or it might be re-emitted at the same or at a different, lower, wavelength (fluorescence).
When an x-ray is absorbed, on the other hand, the electrons gain so much energy that they leave the atom/molecule entirely. They get 'kicked out of orbit' so to speak. The atom/molecule, having lost a negatively-charged electron, ends up with a positive net charge, making it an ion. For this reason, x-rays and gamma rays are also called 'ionizing radiation'. The electrons eventually make their way back to the atoms/molecules, and heat and radiation is given off in the process. (for instance, some substances visibly glow when exposed to x-rays)
This is why x-rays are dangerous. They have so much energy that they can easily break chemical bonds, such as in our DNA - which causes cancer. Visible light, on the other hand, rarely changes chemistry (when it does it's called a photochemical reaction). So that's what those two forms of radiation do. Although there are other areas of the spectrum as well, which cause other physical phenomena.
Then there's the matter of absorption. It's not very easy to predict the probability of absorption. There's no simple relationship to any everyday property. Basically you have to know how the electrons move around the atoms/molecules to know what their energy states are. Once you know that, you can figure out the probabilities of them absorbing radiation of a particular wavelength. But it's a difficult problem, since electrons repel each other, so the motion of each electron in an atom depends on every other electron in the atom, and it gets mathematically very complicated. Even with computers it's difficult.
But we can still immediately say some things about the different kinds of radiation. To begin with, you likely already know that neither you, or most everyday objects are transparent, in other words, they absorb and/or reflect most visual light that hits them, whereas x-rays mostly go straight through almost everything.