A cryogenic magnetic detector for storage ring experiments