OMEGA code: calculation of the geometrical parameters of detection systems