Analysis of the photoproduction of ω mesons