A Cathode Ray is basically an electron shot at a high speed from a negative to a positive pole from an electron gun. These are not xrays. Once the electrons hit the Anode (or positive pole) of the system they hit a particularly dense material (usully tungsten or molybdenum). Hitting the atoms of these 2 metals the electron (at least some of them) get absorbed by the atom and its own electrons jump up one orbit. They remain in that state for a time (i don’t know how long but to us humans is basically immediate) and then the electron that jumped up one orbit jumps back down towhere it was before the electron shot at it was absorbed. This releases the energy that was absorbed by the electron in form of a photon otherwise known as an x-ray. This photon travels through the air until it has met something dense enough to absorbe it, in this case your bones and tissues.