Let's use a `const std::vector<DetID>&` here to avoid unnecessary copies