The transfer of energy to a medium, such as body tissues, as a radiation beam passes through the medium.