The main switch is a switch controlled by RST. The other switch is a virtual switch.
First set RST = 0 to make the aiming switch open (isolated) point B (point B is the side of the sampled signal). After this setting RSTB = 1, all the charge injection of the virtual switch is captured at the already isolated point B.