Quasimonoenergetic electron beam generation by using a pinholelike collimator in a self-modulated laser wakefield acceleration.