Beam-plasma waves from a finite-length plasma