40 const G4String& requiredPhysicalVolumeName,
42 : fpSearchVolumesModel (pSearchVolumesModel)
43 , fMatcher (requiredPhysicalVolumeName)
44 , fRequiredCopyNo (requiredCopyNo)
76 if (requiredMatch.size()) {
77 size_t last = requiredMatch.size() - 1;
80 if (requiredMatch[0U] ==
'/' && requiredMatch[last] ==
'/') {
94 (
"G4PhysicalVolumesSearchScene::Matcher::Matcher",
95 "modeling0013",
JustWarning,
"Required match is null");
105 if (fRequiredMatch.size()) {
107 std::regex requiredRegex(fRequiredMatch);
109 std::regex_search(s.c_str(), match, requiredRegex);
110 if (match.size() > 0) found =
true;
112 if (s == fRequiredMatch) found =
true;