Characterizing Hilbert space topology