An integrated 6 MV linear accelerator model from electron gun to dose in a water tank.