Charged particles in the magnetosphere