Simulation and analysis of laser/electron beam interaction for use as a free electron laser