you could sample from a larger volume (e.g., the whole sphere you subtract the detector shape from), and then apply /gps/pos/confine to the physical volume.
you could sample from a larger volume (e.g., the whole sphere you subtract the detector shape from), and then apply /gps/pos/confine to the physical volume.