A sniffing leak detector includes a handpiece, supporting a sniffing tip, the detector further including a gas sensor. Specifically, the method enables the efficient calculation of the head scatter phase space in case of a dynamic treatment where jaws and MLC leaves move during the delivery. Each switch in the fabric connected to a host contains a front end or service interface to receive the snapshot command.