Theoretical investigations of the performance of the active laser region by the calculation of the optical gain