Magnetic means for controlling the discharge