Drive laser and electron dynamics of a linac with photo cathode door