Added method to retrieve the associated detector