Self-modulated dynamics of a relativistic charged particle beam in plasma wake field excitation