1 This is not correct in a situation where the detector counts a large fraction of the x-rays in the simulation, but we will neglect that for now.