Question: what conditions are necessary for the production of x rays?
Answer:  A source of free electrons.
 A means to provide the electrons with high kinetic (motion) energy.
 A method to concentrate the electrons into a beam.
 A suitable material to rapidly decelerate the electrons.