ID of hit collections with two identical names

I have two different sensitive detectors based on the same class.

sdClass("det1")
sdClass("det2")

Name of the hits collection is defined in the constructor, so its the same for both detectors.

How do I extract unique ID for each Hit collection?

I was doing before:
sdManager->GetCollectionID("nameHC")
But now names are the same. Only detector names are differ.

Thanks!
But