The rays pass through the food just like microwaves in a microwave oven, but the food does not heat up to any significant extent. Exposure to gamma rays does not make food radioactive. Electron beams and x-rays are produced using electricity, which can be switched on or off, and they do not require radioactive material.