The energy gain and motion of electrons can quantitatively describe the mechanism of electron multipacting in a long-bunched proton machine. Strong multipacting usually happens around the bunches' tails due to the high energy of electrons when they hit the chamber surface. We investigated several important parameters of electron multipacting, proving that it is sensitive to the beam's intensity, the shape of its longitudinal profile, its transverse size, the secondary emission yield, and the energy at peak secondary emission yield. Our analyses, simulations, and experiments are all in agreement.