12 const std::string& module) {
13 std::vector<std::string> names;
14 names.reserve(fAllSensitiveVolumes.size());
15 for (
const FairVolume* volume : fAllSensitiveVolumes) {
19 if (!module.empty() &&
20 (!volume->GetModule() || module != volume->GetModule()->GetName())) {
23 std::string name = volume->GetName();
25 const auto pos = name.find(
'#', 1);
26 if (pos != std::string::npos && pos > 1) {
29 names.push_back(name);