Go to the source code of this file.
◆ LPNAMES
◆ DD_NC()
◆ DDIsValid()
std::pair<bool, std::string> DDIsValid |
( |
const std::string & |
ns, |
|
|
const std::string & |
name, |
|
|
std::vector< DDLogicalPart > & |
result, |
|
|
bool |
doRegex = true |
|
) |
| |
Definition at line 248 of file DDLogicalPart.cc.
References SplitLinear::begin, HLT_2024v14_cff::candidates, mps_fire::end, RemoveAddSevLevel::flag, DDI::Singleton< I >::instance(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, mps_fire::result, mps_update::status, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DDI::Specific::createPartSelections().
255 return std::make_pair(
true,
"");
260 bool emptyNs = aNsRegex.empty();
272 typedef std::vector<LPNAMES::value_type::const_iterator> Candidates;
274 if (aRegex.notRegex()) {
279 if (!aRegex.range().first.empty()) {
283 for (LPNAMES::value_type::const_iterator
it = bn;
it != ed; ++
it)
284 if (aRegex.match(
it->first))
290 if (emptyNs && (sz == 1)) {
297 }
else if (!emptyNs) {
298 std::vector<DDName>::const_iterator nsit(
it->second.begin()), nsed(
it->second.end());
299 for (; nsit != nsed; ++nsit) {
301 bool another_doit = aNsRegex.match(nsit->ns());
308 std::string message =
"DDLogicalPart-name \"" +
it->first +
"\" matching regex \"" + nm +
309 "\" has been found at least in following namespaces:\n";
310 std::vector<DDName>::const_iterator vit =
it->second.begin();
311 for (; vit !=
it->second.end(); ++vit) {
312 message += vit->ns();
315 message +=
"\nQualify the name with a regexp for the namespace, i.e \".*:name-regexp\" !";
316 return std::make_pair(
false, message);
324 std::vector<DDLogicalPart>::const_iterator lpit(
result.begin()), lped(
result.end());
325 for (; lpit != lped; ++lpit) {
327 if (!lpit->isDefined().second) {
328 message = message +
"LogicalPart " + lpit->name().fullname() +
" not (yet) defined!\n";
334 message =
"No regex-match for namespace=" + ns +
" name=" + nm +
"\n";
337 return std::make_pair(
flag, message);
DDName is used to identify DDD entities uniquely.
static value_type & instance()
A DDLogicalPart aggregates information concerning material, solid and sensitveness ...
◆ operator<<()
std::ostream& operator<< |
( |
std::ostream & |
, |
|
|
const DDLogicalPart & |
|
|
) |
| |