Measurement of K shell photoelectric cross section of Ba K x-rays in Y, Zr, Mo, Ag, Cd and Sn