tweaked for compton experiments