Skip to content

Commit

Permalink
Check process name earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
makortel committed Aug 29, 2020
1 parent c0144f2 commit c5a284d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions FWCore/Framework/src/Schedule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ namespace edm {
// Auxiliary search structure to support wildcard for friendlyClassName
std::multimap<std::string, BranchKey> moduleLabelToBranches;
for (auto const& prod : preg.productList()) {
moduleLabelToBranches.emplace(prod.first.moduleLabel(), prod.first);
if (processName == prod.second.processName()) {
moduleLabelToBranches.emplace(prod.first.moduleLabel(), prod.first);
}
}

// Now, loop over the alias information and store it in aliasMap.
Expand All @@ -255,9 +257,6 @@ namespace edm {
for (auto it = moduleLabelToBranches.lower_bound(moduleLabel);
it != moduleLabelToBranches.end() && it->first == moduleLabel;
++it) {
if (processName != it->second.processName()) {
continue;
}
if (productInstanceName != star and productInstanceName != it->second.productInstanceName()) {
continue;
}
Expand Down

0 comments on commit c5a284d

Please sign in to comment.