Noise spectrum of electron beam in longitudinal magnetic field