Here we could make use of the geometry interface to get the detIds.