The present invention further relates to a method for the generation of x-rays in situ in the human body, comprising locating the x-ray source of the device, preferably by inserting it into a body cavity, such as a blood vessel, at a treated area, and according to one embodiment activating the light source and, according to another embodiment, concurrently activating the power supply.