If I take a $(d+1)$ dimensional Einstein Hilbert Lagrangian $L_{d+1}=\sqrt{-\hat{g}} \hat{R}$ and perform a standard Kaluza Klein dimensional reduction by periodically identifying one direction, let's say $z$, by $z \sim z + 2 \pi r$, I arrive at a $d$ dimensional Lagrangian $L_d=\sqrt{-g}(R - \frac{1}{2} (\partial \phi)^2 - \frac{1}{4} e^{-2(d-1) \alpha \phi} F^2)$.
We can see that the Kaluza Klein vector in the $(d+1)$ dimensional metric manifests itself as a $d$ dimensional gauge field in the lower dimensional system. This gauge field has some associated electric charge and I would like to know how, and why, this gets quantized as a result of the identification $z \sim z + 2 \pi r$.
Thanks very much.