Sensitiv detector

Hi everyone
How to assign a sensitive detector to a volume?

examples/basic : B2, B3, B4, B5