Controlling tubes by information coming from the objects or from the beam