Here (in this file) we could make use of the geometry interface to get the detIds.