The use of an electronic portal imaging device for exit dosimetry