Total photoproduction cross section of hadrons on nuclei