Identification of magnetic fields by charged projectiles data