Motor unit calculation for high energy photon beams door